Sendmail / smarthost on port 587

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Sendmail / smarthost on port 587

Postby Clemens » Sat Jan 14, 2006 8:12 pm

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jan 16, 2006 3:25 pm

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

Clemens
Posts: 68
Joined: Fri Dec 23, 2005 3:20 pm

Postby Clemens » Mon Jan 16, 2006 5:00 pm

Top man!

Thanks a lot!

8)

wheelc
Posts: 45
Joined: Sun Dec 12, 2004 5:34 am
Contact:

Postby wheelc » Thu Mar 02, 2006 4:33 pm

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.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 14 guests

cron