Sendmail: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary
 
Manpaz (talk | contribs)
No edit summary
Line 2: Line 2:
= Sendmail =
= Sendmail =


== How to send email through gmail using Sendmail ==
# Install sendmail and configure it to use Gmail as SMTP output mail server
# Install sendmail and configure it to use Gmail as SMTP output mail server
# Setup provider
# Setup provider
Line 12: Line 13:




== Troubleshooting ==
'''ERROR:'''
'''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:'''
'''FIX:'''
Bind to only one port by setting on /etc/eximf.conf.template
Bind to only one IP address by setting on /etc/eximf.conf.template
<pre><nowiki>
<pre><nowiki>

Revision as of 07:58, 9 November 2012

Sendmail

How to send email through gmail using Sendmail

  1. Install sendmail and configure it to use Gmail as SMTP output mail server
  2. 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