Hello,
I have a problem of relay access denied with postfix to deliver a mail
to one domain (only one, all other domains are ok). I ran smtpd in
verbose mode and I can see that it's the reject_unauth_destination
generic check that reply with status 2, so postfix reject the mail.
So I suspected the virtual map config. Here an extract of postconf :
virtual_alias_domains = $virtual_alias_maps
virtual_alias_expansion_limit = 1000
virtual_alias_maps = $virtual_maps
virtual_alias_recursion_limit = 1000
virtual_destination_concurrency_limit =
$default_destination_concurrency_limit
virtual_destination_recipient_limit = $default_destination_recipient_limit
virtual_gid_maps = proxy:mysql:/etc/postfix/mygid.cf
virtual_mailbox_base = /
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl
virtual_mailbox_maps = proxy:mysql:/etc/postfix/myvirtual.cf
virtual_minimum_uid = 1000
virtual_transport = virtual
virtual_uid_maps = static:33
Is it normal that virtual_maps is not defined ? It appears in main.cf,
but not in postconf. May be it's the problem, but it works with others
domains...
I suspected an encoding problem with the SQL query (the domain contains
hyphens), so I tried to query the SQL db with the data contained in
/etc/postfix/myvirtual.cf, but it seems to be OK (it returns a result).
Where can I get more information on the way reject_unauth_destination
works ? Is it possible to get log from this component ?
If anyone have an idea on what cause this behavior, I'll be glad to hear
from him ! :)
Thanks,
Ben