[BlueOnyx:21484] Re: Outbound on submission port
Colin Jack
colin at mainline.co.uk
Sun Oct 8 04:39:18 -05 2017
Hi Michael,
Hi Colin,
> We have a number of customers using BX servers for their in-house email
> servers.
>
> We are now looking at supplying a cloud based filtering service and it
> requires outbound mail to be sent on the submission port (587) to their
> servers.
>
> They provide instructions for modifying sendmail.mc but on BX this would
> be overwritten:
>
> For this you have to edit */etc/sendmail.mc* and add the following lines
> at the top under the "divert(-1)dnl" line:
>
> define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
>
> define(`SMART_HOST', `[SMART.HOST.TLD]')dnl
>
> Run "sendmailconfig" to use this new configuration. This will
> automatically re-start sendmail.
The SMART_HOST can actually configured via the GUI: "Network Services" /
"Email", "Advanced"-tab and then "Smart Relay Server".
Yup aware of that – sometimes have to use it if a server has been blacklisted! (
For the rest: Edit /etc/mail/sendmail.mc and make your changes in there.
Then run these commands (instead of sendmailconfig):
cd /etc/mail
make all
That will rebuild the sendmail.cf from it and will restart Sendmail.
To prevent anything from dropping your changes from sendmail.mc you can
protect it with chattrib:
chattr +i /etc/mail/sendmail.mc
Brilliant – thank you.
Regards
Colin
More information about the Blueonyx
mailing list