2018年9月17日 星期一

[Notes]How to change sendmail smarthost and resend mail queue

Change Sendmail Smarthost:

vi /etc/mail/sendmail.mc

define(`SMART_HOST', `smtp.FAKECOM.com')dnl

m4 sendmail.mc > sendmail.cf

/etc/init.d/sendmail restart

Resend mail mail queue

sendmail -v -q

沒有留言: