LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2004, 04:04 PM   #1
smaier
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora C2
Posts: 5

Rep: Reputation: 0
Cannot send email out with Sendmail on Fedora Core 2


I am getting desperate now. I have been searching the internet for 2 days trying all kinds of things to get sendmail to send an email, but all attempts have failed so far. Hopefully, someone can point out my mistake......

I am unable to send email out from my box to any external email addresses. Internal seems to work fine. I can, however, receive emails just fine. My server name is 'spacedock', IP 10.96.119.100, and it is sitting on a internal network behind a Netgear router which is connected to a cable modem. I have opened port 25 on the router for the server and I have temporarily disabled the firewall running on the server.

I get the following error message when I try to send to an external email address:
Code:
[smaier@spacedock smaier]$ /usr/sbin/sendmail -v smaier3@hotmail.com
This is a test.
.
hotmail.com: Name server timeout
smaier3@hotmail.com... Transient parse error -- message queued for future delivery
smaier3@hotmail.com... queued

If I use dig I do not get any error messages.
Code:
[smaier@spacedock smaier]$ dig hotmail.com AAAA

; <<>> DiG 9.2.3 <<>> hotmail.com AAAA
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60207
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotmail.com.                   IN      A

;; ANSWER SECTION:
hotmail.com.            80      IN      A       64.4.33.7

;; Query time: 24 msec
;; SERVER: 10.96.119.1#53(10.96.119.1)
;; WHEN: Wed Jul 28 16:42:58 2004
;; MSG SIZE  rcvd: 45

[smaier@spacedock smaier]$ dig hotmail.com MX

; <<>> DiG 9.2.3 <<>> hotmail.com MX
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22411
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotmail.com.                   IN      A

;; ANSWER SECTION:
hotmail.com.            80      IN      A       64.4.33.7

;; Query time: 2 msec
;; SERVER: 10.96.119.1#53(10.96.119.1)
;; WHEN: Wed Jul 28 16:43:49 2004
;; MSG SIZE  rcvd: 45

[smaier@spacedock smaier]$ dig hotmail.com A

; <<>> DiG 9.2.3 <<>> hotmail.com A
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57296
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;hotmail.com.                   IN      A

;; ANSWER SECTION:
hotmail.com.            80      IN      A       64.4.33.7

;; Query time: 2 msec
;; SERVER: 10.96.119.1#53(10.96.119.1)
;; WHEN: Wed Jul 28 16:44:26 2004
;; MSG SIZE  rcvd: 45
nslookup returns:
Code:
[smaier@spacedock smaier]$ nslookup hotmail.com
Server:         10.96.119.1
Address:        10.96.119.1#53

Non-authoritative answer:
Name:   hotmail.com
Address: 64.4.33.7
Anybody have any ideas or suggestions?






Here are my configuration settings:

/etc/mail/sendmail.mc
Code:
divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl #     make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST',`smtp.your.provider')
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
dnl #
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl #
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl #     make -C /usr/share/ssl/certs usage
dnl # or use the included makecert.sh script
dnl #
define(`CERT_DIR',`/etc/mail/certs')
define(`confCACERT_PATH',`CERT_DIR')
define(`confCACERT',`CERT_DIR/cacert.pem')
define(`confSERVER_CERT',`CERT_DIR/cert.pem')
define(`confSERVER_KEY',`CERT_DIR/key.pem')
define(`confCLIENT_CERT',`CERT_DIR/cert.pem')
define(`confCLIENT_KEY',`CERT_DIR/key.pem')
dnl #
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
dnl # slapd, which requires the file to be readble by group ldap
dnl #
dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl
dnl #

dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
dnl #
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
dnl #
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
dnl # this useful.
dnl #
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl #
dnl # For this to work your OpenSSL certificates must be configured.
dnl #
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl #
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl #
dnl # enable both ipv6 and ipv4 in sendmail:
dnl #
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
dnl #
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
dnl FEATURE(`accept_unresolvable_domains')dnl
dnl #
dnl FEATURE(`relay_based_on_MX')dnl
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`smaier.net')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
/etc/mail/access
Code:
localhost.localdomain           RELAY
localhost                       RELAY
127.0.0.1                       RELAY
spacedock.smaier.net            RELAY
spacedock                       RELAY
/etc/sysconfig/network
Code:
NETWORKING=yes
HOSTNAME=spacedock
 
Old 07-28-2004, 04:20 PM   #2
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
what's your mailog say?

tail -f /var/log/maillog
 
Old 07-28-2004, 04:27 PM   #3
smaier
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora C2
Posts: 5

Original Poster
Rep: Reputation: 0
Here is what gets posted to the maillog when I try to send a message out:
Code:
Jul 28 17:24:37 spacedock sendmail[2831]: i6SLOH4G002831: from=smaier, size=16, class=0, nrcpts=1, msgid=<200407282124.i6SLOH4G002831@spacedock.smaier.net>, relay=smaier@localhost
Jul 28 17:24:37 spacedock sendmail[2831]: i6SLOH4G002831: to=smaier3@hotmail.com, delay=00:00:20, mailer=esmtp, pri=30016, dsn=4.4.3, stat=queued
 
Old 07-28-2004, 05:22 PM   #4
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
Ahh I think I got it ...
Code:
[root@localhost mail]# diff sendmail.mc sendmail.mc.orig
17c17
< define(`SMART_HOST',`blah.balhblah.com')
---
> dnl define(`SMART_HOST',`smtp.your.provider')
Uncomment the SMART_HOST line in your sendmail.mc then ...
Code:
# /etc/init.d/sendmail stop
# make -C /etc/mail
# /etc/init.d/sendmail start
Hopefully you know what to put in place of smtp.your.provider
 
Old 07-28-2004, 08:48 PM   #5
smaier
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora C2
Posts: 5

Original Poster
Rep: Reputation: 0
Well, I tried that and I get the same error message. Now this is in the maillog:

Code:
Jul 28 21:42:00 spacedock sendmail[3214]: i6S076vY002624: to=<smaier1@rochester.rr.com>, ctladdr=<smaier@smaier.net> (500/500), delay=1+01:34:14, xdelay=00:00:20, mailer=relay, pri=3630323, relay=smtp-server.rochester.rr.com, dsn=4.0.0, stat=Deferred: Name server: smtp-server.rochester.rr.com: host name lookup failure
Forgive my sendmail ignorence, but, shouldn't sendmail be able to send email without relaying through my ISP's smtp server? I would much rather send email from my own server as opposed to relaying to my ISP's server which is what I think the SMART_HOST definition is doing.
 
Old 07-28-2004, 09:01 PM   #6
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
Forgive my ignorance too. I am just learning about sendmail myself. I was having a problem where COnnection refused was showing up in my maillog when I tried to send email to my yahoo.com email account but I was able to send email to my work account from my workstation at work.

Hmm ... can you send mail to any other systems?
 
Old 07-28-2004, 09:13 PM   #7
smaier
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora C2
Posts: 5

Original Poster
Rep: Reputation: 0
I cannot send to another system.
 
Old 07-28-2004, 09:33 PM   #8
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
try looking here ... this is part of what I have been reading along with the sendmail README files. http://www.redhat.com/support/resour...OWTO/c239.html
 
Old 07-29-2004, 02:19 PM   #9
smaier
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora C2
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, I have solved the problem. It appears that my Netgear router was the cause.

/etc/resolv.conf had an entry:
Code:
nameserver 10.96.119.1
10.96.119.1 is the address to my router. I looked up the external DNS server that the router reported as using and inserted that into the /etc/resolv.conf file. Viola!! Email sends out now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 8.1 and sendmail 8.12, changes? can't send email. RazorH Slackware 5 01-29-2010 05:56 AM
can't send email, smtp or sendmail dtra Linux - Software 1 11-19-2005 06:00 PM
Cannot send out email with Fedora Core 2 BobBuchanan Linux - Software 3 10-09-2004 11:28 AM
Can't send email outside my server with sendmail rocketman3245 Mandriva 1 07-28-2004 10:01 PM
sendmail won't send email robmainella Linux - Software 0 09-10-2003 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration