Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
He was asking you to look into sendmail.cf though I would like to disagree on changing sendmail.cf manually.
In sendmail.mc file, you should have something like this
Code:
define(`SMART_HOST', `[RELAY_HOST_IP]')dnl
You will need to generate a new sendmail.cf using m4 macro and restart the service for changes to take effect.
He was asking you to look into sendmail.cf though I would like to disagree on changing sendmail.cf manually.
In sendmail.mc file, you should have something like this
Code:
define(`SMART_HOST', `[RELAY_HOST_IP]')dnl
You will need to generate a new sendmail.cf using m4 macro and restart the service for changes to take effect.
Yes i have restarted the service after generating new sendmail.cf
for sending mail using mailx, i have configured sendmail.
installed sendmail and then define('SMART_HOST', '192.168.0.X')dnl
and
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Please tell me if i have to change something else also.
Below are the logs if i am trying to send mail using mailx. when i have configured sendmail in one system.
note:- i am using only one system to configure sendmail and sending the mail. mail relay is configured in remote host and i have done the entry in my sendmail.mc
define('SMART_HOST', '192.168.0.125')dnl
Please suggest something to work around this.
Nov 14 16:02:54 GAIDL-5001 sendmail[16907]: rAEAWs7v016907: from=root, size=1099, class=0, nrcpts=1, msgid=<201311141032.rAEAWs7v016907@GAIDL-5001.gai.net>, relay=root@localhost
Nov 14 16:02:54 GAIDL-5001 postfix/smtpd[16908]: connect from localhost[127.0.0.1]
Nov 14 16:02:54 GAIDL-5001 postfix/smtpd[16908]: C97FE1A05AF: client=localhost[127.0.0.1]
Nov 14 16:02:54 GAIDL-5001 postfix/cleanup[16911]: C97FE1A05AF: message-id=<201311141032.rAEAWs7v016907@GAIDL-5001.gai.net>
Nov 14 16:02:54 GAIDL-5001 postfix/qmgr[2614]: C97FE1A05AF: from=<root@GAIDL-5001.gai.net>, size=1578, nrcpt=1 (queue active)
Nov 14 16:02:54 GAIDL-5001 sendmail[16907]: rAEAWs7v016907: to=sachin.davra@gmail.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31099, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as C97FE1A05AF)
Nov 14 16:02:54 GAIDL-5001 postfix/smtpd[16908]: disconnect from localhost[127.0.0.1]
Nov 14 16:02:56 GAIDL-5001 postfix/smtp[16912]: connect to gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25: Network is unreachable
Nov 14 16:02:56 GAIDL-5001 postfix/smtp[16912]: connect to gmail-smtp-in.l.google.com[74.125.129.27]:25: Connection refused
Nov 14 16:02:56 GAIDL-5001 postfix/smtp[16912]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4008:c01::1b]:25: Network is unreachable
Nov 14 16:02:56 GAIDL-5001 postfix/smtp[16912]: connect to alt1.gmail-smtp-in.l.google.com[74.125.142.27]:25: Connection refused
Nov 14 16:02:56 GAIDL-5001 postfix/smtp[16912]: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c01::1a]:25: Network is unreachable
Nov 14 16:02:56 GAIDL-5001 postfix/smtp[16912]: C97FE1A05AF: to=<sachin.davra@gmail.com>, relay=none, delay=1.3, delays=0.08/0/1.3/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c01::1a]:25: Network is unreachable)
Did you re-build the sendmail.cf? Check in the sendmail.cf file and look for the DS line and ensure it has your relay host details.
i checked my sendmail.cf but DS line has no ip or host name then i write ip address of relay host and restarted the service. but still i am getting same error. may be i am doing some less work to get it worked. if you need some more logs plz tell me i will provide it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.