Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Smart Relay Host Port in Sendmail
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
[[category:CDIL]] '''Issue:''' Database Server 192.168.1.1 was not able to send the cron mails to local server 192.168.1.10 Diagnosis : # Was connecting to internet for email.cdil.com , it should connect to local server 192.168.1.10 for sending mails # database server was using sendmail on port 25 to send the mails , It should relay all the mails via 192.168.1.10 on port 26 ( only port opened on it , 25 was closed ) So to resolve the Point 1 , entry on /etc/hosts was done as shown Below 192.168.1.10 mailserver.cdil.com '''email.cdil.com''' Point 2 , We have enabled relay on sendmail to port 26 as per the below details '''''There is an alternative to relay email using a different port at their mail server and their mail server supports SMTP authentication. You may follow the simple Sendmail setup below: β''''' 1. Find βDSβ in /etc/mail/sendmail.cf and add your mail server name as below: β '''DSemail.cdil.com''' 2. Find βMrelayβ in /etc/mail/sendmail.cf and add β26β to βA=TCP $hβ as below: β '''A=TCP $h 26''' 3. Then, restart your Sendmail service as below: β '''service sendmail restart''' 5. Finally, you can monitor your maillog using the command below: β '''tail -f /var/log/maillog''' '''Reference''' [http://wingloon.com/2008/04/06/setup-smart-relay-host-port-in-sendmail/] http://wingloon.com/2008/04/06/setup-smart-relay-host-port-in-sendmail/
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)