I can't get sendmail to use port 587 and not port 25, which my ISP
Comcast blocks.

I've added these lines to my sendmail.mc file, which is a copy of
openbsd-proto.mc I've tried this with the openbsd-localhost.mc file
also, but no success.

~
define(`SMART_HOST', `smtp.comcast.net')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
define(`SMTP_MAILER_ARGS', `TCP $h 587')dnl
MASQUERADE_AS(`comcast.net')dnl
FEATURE(masquerade_envelope)dnl
~

These are the only lines I've changed
I am running 4.3 Release on i386.

What's odd is that after creating my sendmail.cf, I cannot find the
port 587 arguments:

Msmtp,          P=[IPC], F=mDFMuX, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
               T=DNS/RFC822/SMTP,
               A=TCP $h
Mesmtp,         P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
               T=DNS/RFC822/SMTP,
               A=TCP $h
Msmtp8,         P=[IPC], F=mDFMuX8, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
               T=DNS/RFC822/SMTP,
               A=TCP $h
Mdsmtp,         P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP,
R=EnvToSMTP, E=\r\n, L=990,
               T=DNS/RFC822/SMTP,
               A=TCP $h
Mrelay,         P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP,
R=MasqSMTP, E=\r\n, L=2040,
               T=DNS/RFC822/SMTP,
               A=TCP $h


Is this a bug or did I do something wrong?

Is there a way to prevent sendmail from EVER sending mail on port 25?
My goal is to prevent sendmail from EVER sending email on port 25
since my ISP blocks it.

(Please don't tell me to get another ISP. This is all I can get.)

I just want my daily report emails to get sent to me.

I'm not trying to run a full fledged mail server. Just want to send my
root emails and daily reports to my gmail address.

If this can't be done with sendmail, is there another mail server that
can do this?

Reply via email to