R
R
Ruslan Leviev2012-11-16 16:54:32
Debian
Ruslan Leviev, 2012-11-16 16:54:32

Proper reconfiguration of sendmail on Debian

I have a VDS in Hetzner, based on Debian 6. I configured everything for the sites to work, with the exception of sendmail. Apparently, exim4 is not on my server. Anything sent via PHP's mail() function ends up in /var/mail.

The command "stat /usr/sbin/sendmail"gives the following output:

sendmail

What is the correct way to remove the current MTA and make sendmail be a link to exim4? I'm afraid to screw up with the installation. And is it enough to install (configuration does not count) Exim4 will execute the following command or do you also need to install some additional. parts of Exim4?

apt-get install exim4 exim4-daemon-heavy exim4-config

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
ValdikSS, 2012-11-16
@ValdikSS

Just remove sendmail and install exim4, then dpkg-reconfigure exim-configure or something like that.

B
bodzilla, 2012-11-16
@bodzilla

good afternoon!
remove sendmail - apt-get remove sendmail and then install exim.
run /etc/init.d/exim start
check for emails being sent.
P.S.
it may be necessary to specify the provider's SMTP server and launch mail through it and configure smarthost in exim.

V
Vlad Zhivotnev, 2013-11-14
@inkvizitor68sl

Option for the lazy https://debian.pro/1128

For those who are not lazy - https://debian.pro/276 , https://debian.pro/1139 (do not forget to set up only PTR and A records for ip/hostname. Well, spf records too).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question