OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: sender_dependent_relayhost_maps on Postfix 2.4.0

From: Sandy Drobic (postfix-usersjapantest.homelinux.com)
Date: Tue Jul 03 2007 - 17:02:51 CDT


Mark Watts wrote:
>> maildomainname servername
>>
>> i.e.
>>
>> example.com serverrelay.example.net
>>
>> in sender_dependent_relayhost_maps
>>
>> this works like charme
>
> Seems as though I tried everything except the obvious :)

Are you sure that you really need sender_dependent_relayhost_maps?

It is usually only needed, if you have more than one sender address that
wants to auth against one destination server.

This is the configuration that I tested just today:

/etc/postfix/main.cf:
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhost
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_relayhost_auth
smtp_sasl_security_options = noanonymous
smtp_sender_dependent_authentication = yes

/etc/postfix/sender_relayhost
#format: sender-address relayhost
user1gmx.de [mail.gmx.de]
user2gmx.de [mail.gmx.de]

/etc/postfix/smtp_relayhost_auth:
#format: sender-address username:password
user1gmx.de user1gmx.de:password1
user2gmx.de user2gmx.de:password2

Now I am scratching my head trying to find a real-world application for it...

--
Sandy

List replies only please!
Please address PMs to: news-reply2 () japantest (.) homelinux (.) com