Fast Mail Fast Smarthost - fast dirty mail hack
Posted: Fri Mar 27, 2015 8:21 pm
In times you need send mail from your server, but you can't configure it or your hosting provider just closed port for you/or your IP deeply in spamlist (and you're not guilty). You can try to use external and valid smtp to send your mail. Just a little copypaste and service restart. Main idea - use external and valid smtp servers.
Disclaimer: as is, if you understand
Depending on your OS:
CentOS - /etc/exim/exim.conf
or
Debian - /etc/exim4/exim4.conf.template
Search section - AUTHENTICATION CONFIGURATION - add code for your external mail (yandex or google):
Yandex
or
Gmail
Search section - ROUTERS CONFIGURATION - add code for your external mail (yandex or google):
Yandex
or
Gmail
Search section - TRANSPORTS CONFIGURATION - add code for your external mail (yandex or google):
Yandex
or
Gmail
Search section - REWRITE CONFIGURATION - add code for your external mail (yandex or google):
Yandex
or
Gmail
And we restart mail-server exim(4):
CentOS
Debian
Disclaimer: as is, if you understand
Depending on your OS:
CentOS - /etc/exim/exim.conf
or
Debian - /etc/exim4/exim4.conf.template
Search section - AUTHENTICATION CONFIGURATION - add code for your external mail (yandex or google):
Yandex
Code: Select all
yandex_login:
driver = plaintext
public_name = LOGIN
hide client_send = : [email protected] : password
Gmail
Code: Select all
gmail_login:
driver = plaintext
public_name = LOGIN
hide client_send = : [email protected] : password
Yandex
Code: Select all
yandex_route:
driver = manualroute
transport = yandex_relay
route_list = * smtp.yandex.ru
Gmail
Code: Select all
gmail_route:
driver = manualroute
transport = yandex_relay
route_list = * smtp.gmail.com
Yandex
Code: Select all
yandex_relay:
driver = smtp
port = 587
hosts_require_auth = $host_address
hosts_require_tls = $host_address
Gmail
Code: Select all
gmail_relay:
driver = smtp
port = 587
hosts_require_auth = $host_address
hosts_require_tls = $host_address
Yandex
Code: Select all
*@* [email protected] Ffr
Gmail
Code: Select all
*@* [email protected] Ffr
CentOS
Code: Select all
service exim restart
Code: Select all
service exim4 restart