Description
Their own post Office server because of configuration problems, was brought to mass bulk spam. Now the egg hurts, send emails to Gmail or other mailboxes, will be sent back or directly in the bin. One complaint too troublesome, direct change postfix export IP on the line.
Realize:
The code is as follows |
Copy Code |
# cp/etc/postfix/master.cf/etc/postfix/master.cf.bak.2013.10.29 |
Save the original configuration, error also better recovery!!
code is as follows |
copy code |
# vim/etc/postfix/master.cf smtp Unix - - - - - SMTP # when relaying Mail as backup MX, disable Fallback_relay to avoid MX loops relay unix - &nbs p; - - - - SMTP -o smtp_fallback_relay= |
Change to the following, here 192.168.1.1 is the IP address you want to replace
The code is as follows |
Copy Code |
smtp unix - - - - - SMTP -o smtp_bind_address=192.168.1.1 # when relaying mail as backup MX, disable Fallback_relay to avoid MX loops relay unix - - - - - SMTP -O smtp_bind_address=192.168.1.1 -o smtp_fallback_relay= #/etc/ Init.d/postfix restart //restart Postfix |
Appendix:
If you have more than one IP, how do you set it?