E
E
Eugene A2015-03-13 00:13:19
postfix
Eugene A, 2015-03-13 00:13:19

How to implement sending emails from wordpress site to ubuntu 14 server?

Hello guys,
I looked through a bunch of English-language sites on this topic and, roughly speaking, got confused.
There is an ubuntu server with LAMP on board, virtual hosts are configured in Apache for several domains, in principle everything works. When there was only one site on the server, postfix was installed, after which messages from the forms were sent to the specified e-mail address.
After setting up virtual hosts, it all came to a head, which, in fact, is obvious.
How to properly and without crap set up sending emails to wordpress sites that are each under their own domain? There is a mail server, with boxes for each domain, in fact, letters will fall through there, though this is a completely different machine. Please tell me the solution, or direct what to read and study.
Thank you!
upd
__________________________
Let's say that postfix magically fixed itself and now all messages go to an external address.
What could be the reason that the message disappears on the way to the iredmail mail server?
1 server - sites, 2 server - mailer
According to the test results:
1 server - sends to external addresses gmail.com / yandex.ru, etc.
Server 2 - works in a regular two-way mode, transmits and receives mail from gmail / yandex
, there is a guess that somewhere the mail server does not like the address - and the antivirus kills the letter along the way. What do you suggest?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2015-03-13
@merryjane

Initially, any smtp server (postfix, sendmail, exim) must be configured and running on your server.
You can check the sending of mail from the server console using the mail/mutt utilities.
Further, in order for each site (virtual host) to send mail on its own behalf, in the config of each apache virtual host, you must specify a directive with the domain name of this host:

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"

S
Sergey, 2015-03-13
@butteff

sudo dpkg-reconfigure postfix
reconfigure postfix and everything should start working.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question