Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Postfix Local Mail Not Delivered

Hybrid View

  1. #1

    Default Postfix Local Mail Not Delivered

    Despite the postfix server starting at boot and active, no local mail is delivered.

    mailq command outputs loads of entries like...

    0F8B1665B0 701 Wed May 5 19:53:02 root
    root

    ...and there log entries like these...
    postfix/cleanup[3433]: warning: hash:/etc/postfix/sender_canonical is unavailable. unsupported dictionary type: hash
    postfix/cleanup[3433]: warning: hash:/etc/postfix/sender_canonical lookup error for "root@localhost"
    postfix/cleanup[3433]: warning: 97E86665CF: canonical_maps map lookup problem for root@localhost -- message not accepted, try again later
    postfix/cleanup[3433]: warning: 97E86665CF: sender_canonical_maps map lookup problem for root@localhost -- message not accepted, try again later
    postfix/cleanup[3433]: warning: hash:/etc/postfix/canonical is unavailable. unsupported dictionary type: hash
    postfix/cleanup[3433]: warning: hash:/etc/postfix/canonical lookup error for "root@localhost"
    postfix/pickup[1276]: warning: maildrop/9CD2A660F0: error writing 97E86665CF: queue file write error

    Tried web searching for these warnings above, but did not find any explanation or solution.

    /etc/postfix/main.cf configs seemingy related are as such...
    canonical_maps = hash:/etc/postfix/canonical
    relocated_maps = hash:/etc/postfix/relocated
    sender_canonical_maps = hash:/etc/postfix/sender_canonical

    When looking at the contents of /etc/postfix/canonical and /etc/postfix/relocated, they strangely seem to be man page content, though that is also the case on another machine that delivers mail just fine.

    Have all latest system updates, and tried rebooting, but no avail.

    Running opensuse tumbleweed kernel 5.12.2-1-default, and postfix version 3.5.10 release 1.2.

    What do you advise, to diagnose this and get local mail working?

    Thank you

  2. #2
    Join Date
    Sep 2012
    Posts
    6,633

    Default Re: Postfix Local Mail Not Delivered

    Show output of "postconf -m".

  3. #3

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by arvidjaar View Post
    Show output of "postconf -m".
    cidr
    environ
    fail
    inline
    internal
    ldap
    lmdb
    memcache
    nis
    pcre
    pipemap
    proxy
    randmap
    regexp
    socketmap
    static
    tcp
    texthash
    unionmap
    unix

  4. #4
    Join Date
    Sep 2012
    Posts
    6,633

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by skosner View Post
    Code:
    fail
    inline
    So no "hash". Use different database type.

    P.S. and please, post computer output inside of [code]...[/code] tags

  5. #5

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by arvidjaar View Post
    So no "hash". Use different database type.

    Code:
    ~: file /etc/postfix/canonical*
    /etc/postfix/canonical:         ASCII text
    /etc/postfix/canonical.db:    Berkeley DB (Hash, version 9, native byte-order)
    /etc/postfix/canonical.lmdb: data
    Sounds like it's not easier to reconfigure postfix to use type hash. If so, can you point to easiest way to change database type, and what type you'd recommend? Does it entail procuring another database, or just pointing postfix to something else already present? Not seasoned in postfix yet.

    Thank you

  6. #6

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by arvidjaar View Post
    So no "hash". Use different database type.

    If it's not easier to reconfigure postfix to use type hash, can someone point to easiest way to change database type, and which type is a good choice? Does it entail procuring another database, or just pointing postfix to something else already present? Still new to postfix.

  7. #7

    Default Re: Postfix Local Mail Not Delivered

    Fixed. It seems hash lookup table type has been tossed. There are /etc/postfix/*.lmdb files already present, which can be used instead.

    In /etc/postfix/main.cf just change each instance of...

    Code:
    hash:
    ...to...

    Code:
    lmdb:
    ...then restart postfix server.

  8. #8
    Join Date
    Apr 2016
    Location
    Cambridge, UK
    Posts
    191

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by skosner View Post
    Code:
    postfix/cleanup[3433]: warning: hash:/etc/postfix/canonical is unavailable. unsupported dictionary type: hash
    /etc/postfix/main.cf configs seemingy related are as such...
    Code:
    canonical_maps = hash:/etc/postfix/canonical
    Just looking at those two lines above postfix will be expecting to find /etc/postfix/canonical.db which should have been made with the postconf command. Do you have such a file?

  9. #9

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by JulinaB View Post
    Just looking at those two lines above postfix will be expecting to find /etc/postfix/canonical.db which should have been made with the postconf command. Do you have such a file?
    Yes. /etc/postfix/canonical.db exists, and so does /etc/postfix/canonical

    Though postconf command was not manually invoked.

    Both files are -rw-r--r-- 1 root root

  10. #10
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    2,887

    Default Re: Postfix Local Mail Not Delivered

    Quote Originally Posted by skosner View Post
    Yes. /etc/postfix/canonical.db exists, and so does /etc/postfix/canonical

    Though postconf command was not manually invoked.

    Both files are -rw-r--r-- 1 root root
    Local mail using postfix always worked out of the box here with openSUSE. You may try a pristine reinstall.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •