Page 1 of 1
Sendmail / smarthost on port 587
Posted: Sat Jan 14, 2006 8:12 pm
by Clemens
Hello,
I know this is more of a sendmail question rather than scalix, but I was hoping that someone would be able to help me out here...
I've setup sendmail to route all outgoing mail through a smarthost (1and1 in this case).
Now I was wondering how I could tell sendmail to contact that smarthost on port 587 rather than 25? :roll:
Any help is appreciated!
Thanks
Clemens
Posted: Mon Jan 16, 2006 3:25 pm
by ScalixSupport
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
Posted: Mon Jan 16, 2006 5:00 pm
by Clemens
Top man!
Thanks a lot!
8)
Posted: Thu Mar 02, 2006 4:33 pm
by wheelc
Hello,
I have tried changing the details as mentioned. However sendmail is still using localhost.localdomain to relay smtp messages. Am I missing some configuration to sendmail?
Output from /var/log/maillog
Mar 2 16:27:03 jess sendmail[15847]: k22GR2lF015847: to=<wheelc@lineone.net>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30749, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k22GR29c015848 Message accepted for delivery)
relay=localhost.localdomain
Hope you can help. If you need any info please let me know.
cheers
Chris.