Difference between revisions of "Sendmail"
From Bashlinux
(→Sendmail) |
|||
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
− | == How to send email through gmail using Sendmail == |
+ | === How to send email through gmail using Sendmail === |
− | + | * Install sendmail and configure it to use Gmail as SMTP output mail server |
|
− | + | * Setup provider |
|
− | |||
− | <pre><nowiki> |
||
apt-get -y install sendmail sendmail-bin sendmail-cf bind9 |
apt-get -y install sendmail sendmail-bin sendmail-cf bind9 |
||
sed -i -e /SMART_HOST/s/mail/smtp/ /etc/mail/peers/provider |
sed -i -e /SMART_HOST/s/mail/smtp/ /etc/mail/peers/provider |
||
sed -i -e s/mindspring/bashlinux/g /etc/mail/peers/provider |
sed -i -e s/mindspring/bashlinux/g /etc/mail/peers/provider |
||
− | </nowiki></pre> |
||
− | |||
== Troubleshooting == |
== Troubleshooting == |
||
− | + | ; ERROR: |
|
− | socket bind() to port 25 for address 127.0.0.1 failed: Address already in use |
+ | : socket bind() to port 25 for address 127.0.0.1 failed: Address already in use |
− | + | ; FIX: |
|
− | Bind to only one IP address by setting on /etc/eximf.conf.template |
+ | : Bind to only one IP address by setting on /etc/eximf.conf.template |
− | |||
− | <pre><nowiki> |
||
local_interfaces = |
local_interfaces = |
||
only 1 address |
only 1 address |
||
− | </nowiki></pre> |
Latest revision as of 02:11, 10 June 2015
How to send email through gmail using Sendmail
- Install sendmail and configure it to use Gmail as SMTP output mail server
- Setup provider
apt-get -y install sendmail sendmail-bin sendmail-cf bind9 sed -i -e /SMART_HOST/s/mail/smtp/ /etc/mail/peers/provider sed -i -e s/mindspring/bashlinux/g /etc/mail/peers/provider
Troubleshooting
- ERROR
- socket bind() to port 25 for address 127.0.0.1 failed: Address already in use
- FIX
- Bind to only one IP address by setting on /etc/eximf.conf.template
local_interfaces = only 1 address