Hi Postfix list,

I'm having a bit of a problem with aliases and receiving emails on the submission port.
I have a list of aliases in /etc/aliases, such as

------
root: michel, kevin, julien
------

I run postalias /etc/aliases and obtain a proper db file

------
# ls -l /etc/aliases*
-rw-r--r-- 1 root root   385 14 déc.  17:22 /etc/aliases
-rw-r--r-- 1 root root 12288  4 févr. 20:38 /etc/aliases.db
------

Now, if I send an email to r...@example.net on the regular port 25, everything works fine. The email is accepted, and Postfix expand the alias to michel, kevin and julien. All three receive the message.

But, if I do the same on submission port 587, I get an 'Undelivered Mail Returned to Sender' containing the following:

------
<r...@example.net>: host 127.0.0.1[127.0.0.1] said:
    550-Mailbox unknown.
    Either there is no mailbox associated with this 550-name or you
    do not have authorization to see it. 550 5.1.1 User unknown (in
    reply to RCPT TO command)
------

It appears that postfix forwarded the email directly to the imap server (cyrus-imap), that obviously does not have such of the mailbox.


The declaration of the submission service in /etc/postfix/master.cf is as follow:

------
submission inet n       -       -       -       -       smtpd
   -o receive_override_options=no_address_mappings
#   -o content_filter=dksign:[127.0.0.1]:10028
   -o smtpd_tls_security_level=may
-o smtpd_client_restrictions=permit_sasl_authenticated,permit_mynetworks,reject
   -o smtpd_sasl_auth_enable=yes
------

I have the same declaration of submission service working on another server (serving another domain) and alias expansion works fine there.

Can you help me figure out what's wrong ? Why is postfix bypassing the alias lookup ?


Thanks,
Julien

Reply via email to