Hi Clemens,
Edit your /etc/mail/sendmail.cf and search for the string "Msmtp". You should find something that looks like:
Code: Select all
Msmtp, P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Copy and paste those three lines and modify the pasted lines so the whole thing looks like:
Code: Select all
Msmtp, P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h
Msubmission, P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
T=DNS/RFC822/SMTP,
A=TCP $h 587
Save the file, then edit the /etc/mail/mailertable file and add the line:
Code: Select all
domain.com submission:[domain.com]
where domain.com is the smarthost. Next, restart sendmail by typing "service sendmail restart" on RedHat or /etc/init.d/sendmail restart on SuSE.
Now when you send to domain.com it will connect to port 587.
Thanks,
Rachel