[BlueOnyx:21483] Re: Outbound on submission port

Michael Stauber mstauber at blueonyx.it
Sat Oct 7 16:16:46 -05 2017


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".

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

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list