Page 1 of 1

Fast Mail Fast Smarthost - fast dirty mail hack

Posted: Fri Mar 27, 2015 8:21 pm
by skurudo
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

Code: Select all

yandex_login:
  driver = plaintext
  public_name = LOGIN
  hide client_send = : [email protected] : password
or

Gmail

Code: Select all

gmail_login:
  driver = plaintext
  public_name = LOGIN
  hide client_send = : [email protected] : password
Search section - ROUTERS CONFIGURATION - add code for your external mail (yandex or google):

Yandex

Code: Select all

yandex_route:
  driver = manualroute
  transport = yandex_relay
  route_list = * smtp.yandex.ru
or

Gmail

Code: Select all

gmail_route:
  driver = manualroute
  transport = yandex_relay
  route_list = * smtp.gmail.com
Search section - TRANSPORTS CONFIGURATION - add code for your external mail (yandex or google):

Yandex

Code: Select all

yandex_relay:
  driver = smtp
  port = 587
  hosts_require_auth = $host_address
  hosts_require_tls = $host_address
or

Gmail

Code: Select all

gmail_relay:
  driver = smtp
  port = 587
  hosts_require_auth = $host_address
  hosts_require_tls = $host_address
Search section - REWRITE CONFIGURATION - add code for your external mail (yandex or google):

Yandex or

Gmail And we restart mail-server exim(4):
CentOS

Code: Select all

service exim restart
Debian

Code: Select all

service exim4 restart

Re: Fast Mail Fast Smarthost - fast dirty mail hack

Posted: Tue Oct 06, 2015 12:47 pm
by AlexandreRideau
Thanks !!!!!

Do you know how to configure smarthost with mailjet ?

I try to configure exim to work with mailjet but i can't ....

Re: Fast Mail Fast Smarthost - fast dirty mail hack

Posted: Mon Feb 22, 2016 6:10 am
by waleeed1
Do you know how to configure smarthost with mailjet ?

Re: Fast Mail Fast Smarthost - fast dirty mail hack

Posted: Thu Feb 25, 2016 7:22 pm
by skurudo
Mailjet have example on site -> https://www.mailjet.com/docs/code/exim