Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th December 2004, 08:23 PM
ctyler Offline
Registered User
 
Join Date: Dec 2004
Posts: 7
Cannot recieve email from external source

Ok, lets see if I can stump anyone...

Running FC3 with Sendmail and Dovecot, both appear to be working properly, this is where it gets weird.....

I can telnet on port 25 and 110 and both answer up, even from an external network.
I can send mail from the server and it goes out just fine.
I can send mail from the server to a user on the server and recieve just fine Pop3 is working jsut fine as I can recieve email via an external network if the mail is sent locally.

What I can't do is send mail from an external network to an internal user. When I try there is no bounce-message, no log entry in /var/log/maillog or anything.

Here is my sendmail .cf file (which was copied from a working FC3 server running the same services:

mydomain.com = my real domain, for security purposes.

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 # 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
dnl define(`STATUS_FILE', `/etc/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
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
define(`confAUTH_OPTIONS',`A')
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 #
TRUST_AUTH_MECH(`EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')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 #
define(`confCACERT_PATH',`/usr/share/ssl/certs')
define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt')
define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem')
define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.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',`groupreadablekey file')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',`0s')
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 #
DAEMON_OPTIONS(`Port=smtp, 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 # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl # a kernel patch
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
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(`mydomain.com`)dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
FEATURE(masquerade_entire_domain)dnl
dnl #
MASQUERADE_DOMAIN(localhost)
MASQUERADE_DOMAIN(localhost.localdomain)
MASQUERADE_DOMAIN(mydomain.com)dnl
MAILER(smtp)dnl
MAILER(`procmail')

mydomain.com is in the Local Domains file

I've hit a freaking wall here... ANY help will be appreciated.
Reply With Quote
  #2  
Old 4th December 2004, 08:27 PM
ctyler Offline
Registered User
 
Join Date: Dec 2004
Posts: 7
Results of telnet to port 25.....

telnet mydomain.com 25
Trying xxx.xxx.xxx.xxx...
Connected to mail.mydoamin.com (xxx.xxx.xxx.xxx).
Escape character is '^]'.
220 mydomain.com ESMTP Sendmail 8.13.1/8.13.1; Sat, 4 Dec 2004 14:01:00 -0600
ehlo localhost
250-mydomain.com Hello xxx.xxx.xxx.xxx.client.mchsi.com [xxx.xxx.xxx.xxx], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-STARTTLS
250-DELIVERBY
250 HELP
Reply With Quote
  #3  
Old 4th December 2004, 08:40 PM
macemoneta's Avatar
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
It's likely your ISP is blocking port 25. This is becoming increasingly popular; they may remove the block if you request it.

Also, make sure that you are not blocking port 25 (and 110 if you want remote pop3 access) in your firewall.

If you have a standalone router/accesspoint, you will want to forward those ports to your server if you are using NAT. In order to use port forwarding, remember that you need a static IP (can't use DHCP for your mail server).
Reply With Quote
  #4  
Old 4th December 2004, 08:59 PM
ctyler Offline
Registered User
 
Join Date: Dec 2004
Posts: 7
as I demonstrated above, port 25 is not blocked, and I can connect to sendmail on port 25 via telnet.
Reply With Quote
  #5  
Old 4th December 2004, 09:11 PM
macemoneta's Avatar
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
It wasn't clear from the above that the telnet test was done from across the Internet, or from another internal (i.e., not across the Internet) network.

If the telnet test works across the Internet, then check your /var/log/maillog for errors on the incoming connections. If you're not seeing any connection errors, then fire-up a sniffer like Ethereal or tcpdump to monitor traffic to port 25 to see what is happening.
Reply With Quote
  #6  
Old 4th December 2004, 09:20 PM
soulestream Offline
Registered User
 
Join Date: Dec 2004
Posts: 20
have you changed ISP or webaddresses?

a dns error can also cause this?
if you just changed ISP or webhost your Domain entry may not be updated and external inquiries to you email may be going to the wrong IP

soule
__________________
if it ain't broke, fix it till it is.
Reply With Quote
  #7  
Old 4th December 2004, 09:30 PM
ctyler Offline
Registered User
 
Join Date: Dec 2004
Posts: 7
I'm stupid... It's been working the whole time.... I was checking it from the old domain that still has the DNS set for the old server... Tested it from another location and it came through just fine. Sorry to waste your time guys.

Last edited by ctyler; 4th December 2004 at 09:35 PM.
Reply With Quote
Reply

Tags
email, external, recieve, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Unable to recieve Email kevinscof Servers & Networking 4 26th March 2007 11:26 PM
Can't Recieve Email - $20 to whoever answers this. mick-porter Using Fedora 0 24th September 2006 10:24 PM
Can't Recieve Email mick-porter Using Fedora 0 24th September 2006 10:23 PM
Can't recieve external mail when firewall is enabled sameeh Servers & Networking 8 3rd October 2005 04:58 PM


Current GMT-time: 14:45 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat