Fast Mail Fast Smarthost - fast dirty mail hack

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
skurudo
VestaCP Team
Posts: 7679
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Fast Mail Fast Smarthost - fast dirty mail hack

Postby skurudo » 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

Code: Select all

yandex_login:
  driver = plaintext
  public_name = LOGIN
  hide client_send = : username@yandex.ru : password


or

Gmail

Code: Select all

gmail_login:
  driver = plaintext
  public_name = LOGIN
  hide client_send = : username@gmail.com : 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

Code: Select all

*@* username@yandex.ru Ffr


or

Gmail

Code: Select all

*@* username@gmail.com Ffr


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

Code: Select all

service exim restart

Debian

Code: Select all

service exim restart

AlexandreRideau
Posts: 3
Joined: Fri Aug 28, 2015 3:07 pm

Re: Fast Mail Fast Smarthost - fast dirty mail hack

Postby AlexandreRideau » Tue Oct 06, 2015 12:47 pm

Thanks !!!!!

Do you know how to configure smarthost with mailjet ?

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

waleeed1
Posts: 1
Joined: Mon Feb 22, 2016 6:07 am

Re: Fast Mail Fast Smarthost - fast dirty mail hack

Postby waleeed1 » Mon Feb 22, 2016 6:10 am

Do you know how to configure smarthost with mailjet ?
Last edited by waleeed1 on Tue Mar 01, 2016 5:36 am, edited 1 time in total.

skurudo
VestaCP Team
Posts: 7679
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Fast Mail Fast Smarthost - fast dirty mail hack

Postby skurudo » Thu Feb 25, 2016 7:22 pm

Mailjet have example on site -> https://www.mailjet.com/docs/code/exim
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “Mail Server”



Who is online

Users browsing this forum: No registered users and 3 guests