OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: smtp auth/local delivery question

From: Brian Evans (grknightscent-team.com)
Date: Fri May 02 2008 - 09:33:38 CDT


Matthias Leopold wrote:
> hi,
>
> i need help with the following problem:
>
> i have a (mostly) ldap based setup (relevant main.cf lines see below).
>
> virtual_mailbox_maps = ldap:/etc/postfix/ldapmaps/virtual_mailbox.cf
> virtual_mailbox_domains = hash:/etc/postfix/virtual_mailbox_domains
>
> virtual_alias_maps = hash:/etc/postfix/virtual_alias
>
> smtpd_recipient_restrictions = reject_unauth_destination
> permit_sasl_authenticated
>
> a lookup for "userdomain.tld" in virtual_mailbox_maps yields a result
> /etc/postfix/virtual_mailbox_domains does not contain "domain.tld"
> /etc/postfix/virtual_alias only contains "userdomain.tld" as a remote
> destination
>
> when i try to relay mail to "userdomain.tld" via my server i get
> "relaying denied". this is what i expect. when i try to relay mail to
> "userdomain.tld" after successful smtp authentication postfix tries
> to deliver locally. this is contrary to what i thought. is there a way
> to make this work other than deleting "userdomain.tld" from
> virtual_mailbox_maps?
My "guess" would be you have your domain in mydestination.

No one here can help further without posting `postconf -n`.
Substitute example.(com|net|org) instead of your own domain if you so
desire.

Brian