postfix, msmtp and domainfactory - reloaded

Hi,

because it didn’t work like it should, today I sat down and tried to fix it - with success :-)

My config now sends all mail which is sent on my server to my external account at domainfactory. So I don’t need to check if there are any errors occured, because the errror mail will be forwarded.

How does my config look? I’ll only post the relevant parts.

/etc/postfix/main.cf

mailbox_transport = msmtp
default_transport = msmtp

/etc/postfix/master.cf

msmtp unix - n n - - pipe
flags=. user=msmtp argv=/usr/bin/msmtp -C /etc/msmtprc -a df xxx@mcbachmann.de

/etc/msmtprc

account df
host smtprelaypool.ispgateway.de
from yyy@mcbachmann.de
auth on
user 012345
password XXxxXXxxXX
tls on
tls_certcheck off

This works like a charm, but don’t use it, if you have a server with more than one user or if you wan’t to sent mails to other mailadresses than xxx@mcbachmann.de as well. Anyway, you could use at least the /etc/msmtprc.

Bye Sven