Strange, firstly uninstall and reinstall the sendmail package, then try the m4 macro tool again to create your submit.cf file. Then try the "sendmail -v" command again. -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan Sundar Sent: Wednesday, 16 September 2009 3:52 a.m. To: General Red Hat Linux discussion list Subject: Re: sendmail configuration Gef, i am trying to configure sendmail on our brand new Linux server. Its in RHEL AS 4 update 8. No it didnt workkearlier. Kindly let me know if I had do change any config parameters? -Kalyan On Tue, Sep 15, 2009 at 9:17 PM, Geofrey Rainey <Geofrey.Rainey@xxxxxxxxxx>wrote: > Parse error - that's strange, perhaps your configuration file is > mangled. > > When did you install sendmail? What version? What OS? Has sendmail ever > worked on this server before? Who has tried to configure it before? > > It should look something like this: > > [root@server logs]# sendmail -v user@domain > Subject: test > . > user@xxxxxxxxx Connecting to smtp.domain via relay... > 220 server.domain ESMTP Postfix > >>> EHLO server.domain > 250-server.domain > 250-PIPELINING > 250-SIZE 10240000 > 250-VRFY > 250-ETRN > 250-ENHANCEDSTATUSCODES > 250-8BITMIME > 250 DSN > >>> MAIL From:<user@domain> SIZE=14 > 250 2.1.0 Ok > >>> RCPT To:<user@domain> > >>> DATA > 250 2.1.5 Ok > 354 End data with <CR><LF>.<CR><LF> > >>> . > 250 2.0.0 Ok: queued as 09D08754F9 > user@xxxxxxxxx Sent (Ok: queued as 09D08754F9) > Closing connection to smtp.domain > >>> QUIT > 221 2.0.0 Bye > [root@server logs]# > > -----Original Message----- > From: redhat-list-bounces@xxxxxxxxxx > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan Sundar > Sent: Wednesday, 16 September 2009 3:07 a.m. > To: General Red Hat Linux discussion list > Subject: Re: sendmail configuration > > Gef, > below command throws an error: > > sendmail -v > kalyan.sundu@<domain_name>.com<kalyan.sundu@%3Cdomain_name%3E.com> > <domain name>.com: Name server timeout > kalyan.sundu@<domain_name>.com <kalyan.sundu@%3Cdomain_name%3E.com>... > Transient parse error -- message queued for future delivery > > Thanks, > kalyan > > On Tue, Sep 15, 2009 at 8:06 PM, Geofrey Rainey > <Geofrey.Rainey@xxxxxxxxxx>wrote: > > > Please past the output of this command: > > > > Sendmail -v username@xxxxxxxxxx > > Subject: test > > . > > > > > > (ie, -v will give verbose output, type in the Subject line as shown, > and > > then on the newline, put a period character, and push enter, then it > > should > > Start the connection and you'll get the output. > > > > -----Original Message----- > > From: redhat-list-bounces@xxxxxxxxxx > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan Sundar > > Sent: Wednesday, 16 September 2009 2:34 a.m. > > To: General Red Hat Linux discussion list > > Subject: Re: sendmail configuration > > > > Gef, > > Please find the o/p below: > > > > > > telnet mx 25 > > Trying 192.168.5.26... > > Connected to mx.<domain>.com (192.168.5.26). > > Escape character is '^]'. > > 220 mx.<domain>.com ESMTP Postfix > > Thanks, > > Kalyan > > > > > > On Tue, Sep 15, 2009 at 8:00 PM, Geofrey Rainey > > <Geofrey.Rainey@xxxxxxxxxx>wrote: > > > > > Please confirm that you can talk to the relay server on port 25. You > > can > > > use the telnet program to do this: > > > > > > # telnet mailserver 25 > > > > > > - you should get a banner, please paste the output here. > > > > > > -----Original Message----- > > > From: redhat-list-bounces@xxxxxxxxxx > > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan Sundar > > > Sent: Wednesday, 16 September 2009 12:59 a.m. > > > To: General Red Hat Linux discussion list > > > Subject: Re: sendmail configuration > > > > > > Gef, > > > Even the sendmail.cf reflects the same value. > > > > > > -kalyan > > > > > > On Tue, Sep 15, 2009 at 6:24 PM, Geofrey Rainey > > > <Geofrey.Rainey@xxxxxxxxxx>wrote: > > > > > > > Okay, and what is the value in your sendmail.cf? > > > > > > > > -----Original Message----- > > > > From: redhat-list-bounces@xxxxxxxxxx > > > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan Sundar > > > > Sent: Wednesday, 16 September 2009 12:53 a.m. > > > > To: General Red Hat Linux discussion list > > > > Subject: Re: sendmail configuration > > > > > > > > below is the entry i got in submit.cf . I have just blanked out > > domain > > > > name. > > > > > > > > # "Smart" relay host (may be null) > > > > DSmx.<domainname>.com > > > > > > > > Thanks, > > > > Kalyan > > > > On Tue, Sep 15, 2009 at 6:17 PM, Geofrey Rainey > > > > <Geofrey.Rainey@xxxxxxxxxx>wrote: > > > > > > > > > Please paste here exactly what the "DS" directive line says in > > > > > submit.cf. > > > > > > > > > > -----Original Message----- > > > > > From: redhat-list-bounces@xxxxxxxxxx > > > > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan > Sundar > > > > > Sent: Wednesday, 16 September 2009 12:12 a.m. > > > > > To: General Red Hat Linux discussion list > > > > > Subject: Re: sendmail configuration > > > > > > > > > > Hi Gef, > > > > > Thanks once again. > > > > > > > > > > yes... after the configuration mailer=esmtp got changed to > > > > mailer=relay > > > > > but > > > > > the relay is still pointing to root@localhost > > > > > > > > > > relay=root@localhost . How do I point relay to my smtp server. > > > kindly > > > > > advice. > > > > > > > > > > Thanks, > > > > > kalyan > > > > > > > > > > On Tue, Sep 15, 2009 at 5:08 PM, Geofrey Rainey > > > > > <Geofrey.Rainey@xxxxxxxxxx>wrote: > > > > > > > > > > > After you've made those changes, search inside the newly > created > > > > file > > > > > > for: > > > > > > > > > > > > # "Smart" relay host (may be null) > > > > > > DSrelay-name.domain.com <http://dsrelay-name.domain.com/> < > http://dsrelay-name.domain.com/> < > > http://dsrelay-name.domain.com/> < > > > http://dsrelay-name.domain.com/> < > > > > http://dsrelay-name.domain.com/> < > > > > > http://dsrelay-name.domain.com/> > > > > > > > > > > > > What do you find? > > > > > > > > > > > > -----Original Message----- > > > > > > From: redhat-list-bounces@xxxxxxxxxx > > > > > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan > > Sundar > > > > > > Sent: Tuesday, 15 September 2009 11:29 p.m. > > > > > > To: General Red Hat Linux discussion list > > > > > > Subject: Re: sendmail configuration > > > > > > > > > > > > Hi Gef, > > > > > > Thanks a lot for your inputs. > > > > > > > > > > > > I made below mentioned changes to the submit.mc and configured > > > > > > submit.cf. > > > > > > > > > > > > But still the sendmail uses the relay=root@localhost and the > > > > > stat=queued > > > > > > , > > > > > > mailer=esmtp. > > > > > > > > > > > > yes, I just need to send mails .please let me know if i am > > missing > > > > any > > > > > > other > > > > > > configurations > > > > > > > > > > > > Thanks, > > > > > > kalyan > > > > > > > > > > > > On Tue, Sep 15, 2009 at 4:40 PM, Geofrey Rainey > > > > > > <Geofrey.Rainey@xxxxxxxxxx>wrote: > > > > > > > > > > > > > Are you using mail to both receive and send, or only send? > > > > > > > > > > > > > > If you're using it to only send mail, then do the following: > > > > > > > > > > > > > > Go to /etc/mail, here you should find a file called > submit.mc > > > > > > > > > > > > > > Edit this file and update the parameter and add something > like > > > > this > > > > > > > anywhere to the file: > > > > > > > > > > > > > > define('SMART_HOST','relay.domain.com')dnl > > > > > > > > > > > > > > And if there's an entry containing something like 'SMTP', > > > > > '127.0.0.1' > > > > > > > etc, comment it out by preceding it with dnl (or removing it > > or > > > > > > > whatever). > > > > > > > > > > > > > > Then type the following: > > > > > > > > > > > > > > # m4 submit.mc > submit.cf > > > > > > > > > > > > > > (You'll need to ensure two packages are installed for this, > > > > > > sendmail-cf > > > > > > > and m4) > > > > > > > > > > > > > > If you're using sendmail to receive mail, submit > > sendmail.mc/cf > > > > for > > > > > > each > > > > > > > submit.mc/cf above, then restart sendmail. > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: redhat-list-bounces@xxxxxxxxxx > > > > > > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Kalyan > > > Sundar > > > > > > > Sent: Tuesday, 15 September 2009 10:58 p.m. > > > > > > > To: General Red Hat Linux discussion list > > > > > > > Subject: sendmail configuration > > > > > > > > > > > > > > Hi All, > > > > > > > I am trying to configure sendmail on Linux server. > > > > > > > > > > > > > > After the configuration the maillog show below message: > > > > > > > > > > > > > > Sep 15 12:19:30 ebizrep sendmail[31924]: n8F8GoWo031924: > > > > from=root, > > > > > > > size=70, > > > > > > > class=0, nrcpts=1, msgid=< > > > > > > > > > > > > > > > > > > > > > > > > > > > > 200909150817.n8F8H5Us031927@<servername>.domain.com<200909150817.n8F8H5U > > > > > > > s031927@%3Cservername%3E.domain.com <http://3e.domain.com/> < > http://3e.domain.com/> > < > > http://3e.domain.com/> < > > > http://3e.domain.com/> < > > > > http://3e.domain.com/> < > > > > > http://3e.domain.com/> < > > > > > > http://3e.domain.com/>>>, > > > > > > > relay=root@localhost > > > > > > > Sep 15 12:19:30 ebizrep sendmail[31924]: n8F8GoWo031924: > > > > > > > to=<mail_id>@<domain>.com > <to=%3Cmail_id%3E@%3Cdomain%3E.com>, > > > > > > > delay=00:02:40, mailer=esmtp, pri=30070, dsn=4.4.3, > > stat=queued > > > > > > > Sep 15 12:19:45 ebizrep sendmail[31927]: n8F8H5Us031927: > > > > from=root, > > > > > > > size=83, > > > > > > > class=0, nrcpts=1, msgid=< > > > > > > > > > > > > > > > > > > > > > > > > > > > > 200909150817.n8F8H5Us031927@<servername>.domain.com<200909150817.n8F8H5U > > > > > > > s031927@%3Cservername%3E.domain.com <http://3e.domain.com/> < > http://3e.domain.com/> > < > > http://3e.domain.com/> < > > > http://3e.domain.com/> < > > > > http://3e.domain.com/> < > > > > > http://3e.domain.com/> < > > > > > > http://3e.domain.com/>>>, > > > > > > > relay=root@localhost > > > > > > > Sep 15 12:19:45 ebizrep sendmail[31927]: n8F8H5Us031927: > > > > > > > to=<mail_id>@<domain>.com > <to=%3Cmail_id%3E@%3Cdomain%3E.com>, > > > > > > > delay=00:02:40, mailer=esmtp, pri=30083, dsn=4.4.3, > > stat=queued > > > > > > > The mail status is showing as queued which makes me think > that > > > > the > > > > > > > sendmail > > > > > > > configuarion is not properly done. > > > > > > > > > > > > > > how to I make the existing mail=esmtp to mailer=relay and > > > > > > > relay=root@localhost to relay=<smtpserver.domain.com> > > > > > > > > > > > > > > I am new to this topic. Kindly give your inputs which ll be > > very > > > > > > helpful > > > > > > > to > > > > > > > proceed further. > > > > > > > > > > > > > > Thanks, > > > > > > > Kalyan > > > > > > > -- > > > > > > > redhat-list mailing list > > > > > > > unsubscribe > > > > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > > > ========================================================== > > > > > > > For more information on the Television New Zealand Group, > > visit > > > us > > > > > > > online at tvnz.co.nz > > > > > > > ========================================================== > > > > > > > CAUTION: This e-mail and any attachment(s) contain > > information > > > > that > > > > > > > is intended to be read only by the named recipient(s). This > > > > > > information > > > > > > > is not to be used or stored by any other person and/or > > > > organisation. > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > redhat-list mailing list > > > > > > > unsubscribe > > > > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > > > -- > > > > > > redhat-list mailing list > > > > > > unsubscribe > > > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > > ========================================================== > > > > > > For more information on the Television New Zealand Group, > visit > > us > > > > > > online at tvnz.co.nz > > > > > > ========================================================== > > > > > > CAUTION: This e-mail and any attachment(s) contain > information > > > that > > > > > > is intended to be read only by the named recipient(s). This > > > > > information > > > > > > is not to be used or stored by any other person and/or > > > organisation. > > > > > > > > > > > > > > > > > > -- > > > > > > redhat-list mailing list > > > > > > unsubscribe > > > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > -- > > > > > redhat-list mailing list > > > > > unsubscribe > > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > ========================================================== > > > > > For more information on the Television New Zealand Group, visit > us > > > > > online at tvnz.co.nz > > > > > ========================================================== > > > > > CAUTION: This e-mail and any attachment(s) contain information > > that > > > > > is intended to be read only by the named recipient(s). This > > > > information > > > > > is not to be used or stored by any other person and/or > > organisation. > > > > > > > > > > > > > > > -- > > > > > redhat-list mailing list > > > > > unsubscribe > > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > -- > > > > redhat-list mailing list > > > > unsubscribe > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > ========================================================== > > > > For more information on the Television New Zealand Group, visit us > > > > online at tvnz.co.nz > > > > ========================================================== > > > > CAUTION: This e-mail and any attachment(s) contain information > that > > > > is intended to be read only by the named recipient(s). This > > > information > > > > is not to be used or stored by any other person and/or > organisation. > > > > > > > > > > > > -- > > > > redhat-list mailing list > > > > unsubscribe > > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > > > -- > > > redhat-list mailing list > > > unsubscribe > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > ========================================================== > > > For more information on the Television New Zealand Group, visit us > > > online at tvnz.co.nz > > > ========================================================== > > > CAUTION: This e-mail and any attachment(s) contain information that > > > is intended to be read only by the named recipient(s). This > > information > > > is not to be used or stored by any other person and/or organisation. > > > > > > > > > -- > > > redhat-list mailing list > > > unsubscribe > mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > https://www.redhat.com/mailman/listinfo/redhat-list > > ========================================================== > > For more information on the Television New Zealand Group, visit us > > online at tvnz.co.nz > > ========================================================== > > CAUTION: This e-mail and any attachment(s) contain information that > > is intended to be read only by the named recipient(s). This > information > > is not to be used or stored by any other person and/or organisation. > > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > https://www.redhat.com/mailman/listinfo/redhat-list > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > ========================================================== > For more information on the Television New Zealand Group, visit us > online at tvnz.co.nz > ========================================================== > CAUTION: This e-mail and any attachment(s) contain information that > is intended to be read only by the named recipient(s). This information > is not to be used or stored by any other person and/or organisation. > > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list ========================================================== For more information on the Television New Zealand Group, visit us online at tvnz.co.nz ========================================================== CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list