LinuxQuestions.org
Help answer threads with 0 replies.
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 04-24-2012, 07:30 AM   #1
WhoFlungDo
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Rep: Reputation: 0
Basic Mail Server - Postfix/Dovecot


I have setup a pretty basic CentOS 6.2 server in house. It runs WordPress for a basic test Intranet/Blog site. I have also installed Postfix using this site (http://www.linuxmail.info/mail-server-setup-centos-6/)
I have tested running telnet at the server and sending mail from a command line and it queues it fine, but the mail never gets delivered to the users Maildir folder. This is a very basic configuration with only 2 users. The server is hidden behind our firewall and only acts a mail server for our local domain, again, only in a test environment. I am pretty new to CentOS (linux in general) but would like some direction as to where to start.

Thank you for your assistance
 
Old 04-24-2012, 08:23 AM   #2
TommyC7
Member
 
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 530

Rep: Reputation: Disabled
Hi there.

That's a nice guide you have there, but CentOS also gives out a Postfix/Dovecot guide on their own Wiki which you may want to try:

http://wiki.centos.org/HowTos/postfix

It has configurations for both Postfix and Dovecot. Other good reads are books on RedHat System Administration. 99% of <Insert Operating System Here> System Administration books I've read try and teach the reader how to setup various servers using that Operating System ranging from not only just mail servers, but ftp servers, web servers, dhcp servers, and much more.
 
Old 04-24-2012, 08:31 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Check the logfiles for clues.

/var/log/mail.* on Debian, don't know about CentOS.
 
Old 04-27-2012, 09:23 AM   #4
WhoFlungDo
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
Postfix/Dovecot Update

OK... proud to say that Postfix is delivering mail correctly to the mailboxes and I can pop mail using Outlook from a client through Dovecot. However, none of the workstations can smtp mail through the server. If I shell into the server I can telnet to the localhost AND through the loopback IP address of the server using port 25 (smtp). But I cannot telnet at the console to the IP address NOR to the hostname of the server using port 25. This leads me to believe that somehow maybe the linux firewall is blocking the port. So I turned OFF iptables and tested again at the console. Still not working. If I cannot telnet to the port at the server, then the network firewall is NOT the issue. I know Postfix is working and will function from localhost, so the config seems to be at least PARTLY correct. I am confused now where to attack this issue. Any help you can provide is appreciated.
 
Old 04-27-2012, 09:35 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Check your postfix config to ensure that it's listening on your IP address and not just localhost/127.0.0.1

/etc/postfix/master.cf and ensure you have:

Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
127.0.0.1:smtp        inet        n        -        n        -        -        smtpd
your.ip.addy.here:smtp      inet  n       -       n       -       -       smtpd
 
Old 04-27-2012, 10:13 AM   #6
WhoFlungDo
LQ Newbie
 
Registered: Jan 2011
Posts: 15

Original Poster
Rep: Reputation: 0
Perfect !

Thank you very much. This fixed the issues. I have been in and out of the master.cf file several times, I have just not added any IP address (loopback or otherwise) to the smtp service line.
Your help is greatly appreciated. Next step... MailScanner !!

Thank you again



Quote:
Originally Posted by TenTenths View Post
Check your postfix config to ensure that it's listening on your IP address and not just localhost/127.0.0.1

/etc/postfix/master.cf and ensure you have:

Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
127.0.0.1:smtp        inet        n        -        n        -        -        smtpd
your.ip.addy.here:smtp      inet  n       -       n       -       -       smtpd
 
Old 04-27-2012, 10:16 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by WhoFlungDo View Post
Thank you very much. This fixed the issues. I have been in and out of the master.cf file several times, I have just not added any IP address (loopback or otherwise) to the smtp service line.
Your help is greatly appreciated. Next step... MailScanner !!

Thank you again
You're welcome, your next step should be..... Mark my post as helpful and mark the problem [Solved]
 
  


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
Dovecot/Postfix server - some mail not arriving technomeister Linux - General 4 12-28-2012 02:05 PM
Basic Postfix and Dovecot Mail Server for a test environment. metallica1973 Linux - Server 5 01-26-2011 03:00 PM
Is My Postfix-Dovecot Mail Server Secure Enough? bper Linux - Security 4 09-19-2010 06:19 AM
Postfix/Dovecot Mail Server Redundancy haariseshu Linux - Server 2 05-29-2009 05:55 AM
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM

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

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