LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-24-2007, 12:17 AM   #1
rdnewman
Member
 
Registered: Jul 2005
Location: Meridian, ID
Distribution: FC6
Posts: 30

Rep: Reputation: 15
Sendmail setup for small network by new admin


I'm setting up my first full Linux (FC6) server, but can't get mail service to work with sendmail. At this point, I've ruled out a firewall problem since even with it completely down, I can't seem to get the ports to open. I have a local DNS setup with a MX entry, but I doubt that is related.

These are my symptoms:
1) I can't telnet into my yyy.yyy.yyy.yyy:110 port (where yyy.yyy.yyy.yyy is my external IP):
Code:
$ telnet yyy.yyy.yyy.yyy 80
Trying yyy.yyy.yyy.yyy...
Connected to host-yyy-yyy-yyy-yyy.ns1.xxxx.net (yyy.yyy.yyy.yyy).
^]
telnet> q
Connection closed.
$ telnet yyy.yyy.yyy.yyy 110
Trying yyy.yyy.yyy.yyy...
telnet: connect to address yyy.yyy.yyy.yyy: Connection refused
telnet: Unable to connect to remote host: Connection refused
2) nmap (from inside or outside) gives port 110 closed:
Code:
# nmap yyy.yyy.yyy.yyy -p 110

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-03-23 23:07 MDT
Interesting ports on inet (yyy.yyy.yyy.yyy):
PORT    STATE  SERVICE
110/tcp closed pop3

Nmap finished: 1 IP address (1 host up) scanned in 0.193 seconds
3)
Code:
# sendmail -d0.1
Version 8.13.8
 Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
                MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
                NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
                TCPWRAPPERS USERDB USE_LDAP_INIT

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = localhost
  (canonical domain name) $j = localhost.localdomain
         (subdomain name) $m = localdomain
              (node name) $k = poppa
4) the firewall lets it in (I've even brought the firewall completely down to confirm)
Code:
# iptables -L
...
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:pop3
...
5) sendmail is indeed running:
Code:
# service --status-all 2>/dev/null | grep sendmail
sendmail (pid 21011 20878 11365 11353) is running...
6) my /etc/mail/sendmail.mc file:
Code:
# cat sendmail.mc | egrep -v "^dnl"
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID', ``8:12'')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
define(`confTO_IDENT', `0')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
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
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
What am I missing?

Thank you in advance for your advice.

Regards,
Richard

Last edited by rdnewman; 03-24-2007 at 12:49 AM.
 
Old 03-24-2007, 01:21 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sendmail uses ports 25 for sending/receiving SMTP traffic (and port 587 for local msp, from memory). For downloading that mail from your server you need a POP3 (port 110) or IMAP (port 143) server running. Do you have a pop or imap server installed? I'm pretty sure Fedora includes at least one...
 
Old 03-24-2007, 01:56 AM   #3
rdnewman
Member
 
Registered: Jul 2005
Location: Meridian, ID
Distribution: FC6
Posts: 30

Original Poster
Rep: Reputation: 15
I guess I'm confused then. I thought, despite its name, sendmail supports receiving mail as well. Is the POP3 separate? Do you have advice of a common POP3 server to use for FC6 (or Linux in general)? None of the online or book references I'm using mention having to get a separate POP3.

-Richard
 
Old 03-24-2007, 02:02 AM   #4
rdnewman
Member
 
Registered: Jul 2005
Location: Meridian, ID
Distribution: FC6
Posts: 30

Original Poster
Rep: Reputation: 15
Dovecot, maybe? I thought that was instead of sendmail.

-Richard
 
Old 03-24-2007, 02:14 AM   #5
rdnewman
Member
 
Registered: Jul 2005
Location: Meridian, ID
Distribution: FC6
Posts: 30

Original Poster
Rep: Reputation: 15
Okay, I think I found the references online that explain it for me. Thanks much for pointing me in the right direction. I'll post when I've got it working just to confirm.

Richard
 
Old 03-24-2007, 02:02 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sorry - I haven't been near the PC for a while... Just to confirm, sendmail does receive mail for a domain and delivers it to the users' in boxes on the server. To download it from the mail server you need either POP3 or IMAP access to the server - such as Dovecot, which you've already discovered
 
  


Reply



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
General questions about how to setup a small business network tauceti38 Linux - Networking 1 05-18-2006 09:14 PM
Small network setup gneeot Linux - Networking 6 02-28-2006 05:32 PM
Small network setup suggestion needed imag Linux - Networking 5 01-20-2006 05:28 AM
Trying to setup remote logins on small network armedguard Linux - Networking 13 12-11-2003 10:26 AM
Small network setup. HELP..... zaldyd Linux - Networking 0 07-15-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:04 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