Perhaps I explained the situation not detailed enough.
I have no idea how I can solve my situation without relaymaps and
sasl_passwd. If anybody has one please tell me.
The situation is the following. I cannot use only one smarthost because
all spamfilter would block the connection if you send mails with an open
So all mails have to send with the corresponding mailserver from which
domain you are sending the mail. Additional to that you have to
configure sasl_passwd for each emailaccount. I have replaced all @ with at.
So if you have the following emailadresses:
abcd at web.de
efgh at web.de
efgh at gmx.de
abcd at googlemail.com
efgh at googlemail.com
you have to send the one from abcd at web.de with the mailserver from
web.de with the smtp authentication user:abcd at webde pass: 123456
If you send from efgh at gmx.de the email has to send with the mailserver
from gmx.de with the corresponding authentication via smtp
I solved my situation by using sasl_passwd and relaymaps.
Here is an example strucure of both config files.
username at foo.com username:password
john at foo.com smtp.foo.com
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
What have I to do for a persistent nethserver configuration?
Thank you for your help and being interested at my case.