LinuxQuestions.org
Visit Jeremy's Blog.
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-20-2011, 11:58 PM   #1
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
postfix / dovecot help on new setup


CentOS 5 box was just setup to replace a crashed old one. I went through this how-to (http://www.linuxmail.info/install-se...ecot-centos-5/) so the config is postfix / mysql / dovecot. I have postfix.admin installed and working, added users (confirmed from mysql command line) and can login using telnet server pop3 with the user information. The problem I am left with is just receiving mail. I have both squirrelmail and roundcube installed, and can also authenticate using both (/var/log/maillog shows);

Mar 20 20:09:03 server dovecot: IMAP(user@domain.com): Effective uid=505, gid=505, home=/home/vmail/domain.com/user


From either webclient I can naturally send mail out and both yahoo and gmail client confirms, yet a reply shows nothing, and nothing ever shows in the maillog. Firewall is shut down but I don't know postfix enough to see how to test, or is something else grabbing the mail.

I can provide anything necessary, just let me know what. As I see it (just so far) Postfix should be the server that answers and receives the mail, dovecot is more the pop/imap the client would use, so I think it's a postfix issue. If so, can I turn up the debugging, etc. but again, I think all mail received should appear in the maillog file 1st as I see the outbound mail go fine!

Thanks
 
Old 03-21-2011, 07:40 AM   #2
tva
Member
 
Registered: Jul 2010
Location: Finland
Distribution: Open SUSE 13.1
Posts: 83

Rep: Reputation: 8
Definately sounds like postfix problem, or something else (firewall) between internet and your smtp. Does your mail.warn or mail.err logfiles show anything?

You can also try to telnet to your server to port 25 and then view log files.
 
Old 03-21-2011, 09:13 AM   #3
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Original Poster
Rep: Reputation: 31
Yep, sometimes it pays to start with the obvious.

from outide, a telnet server 25 reveals;

telnet server 25
Trying server-ip
telnet: connect to address server-ip: Connection refused
telnet: Unable to connect to remote host

From internal
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 server ESMTP Postfix

port scanning the box doesn't show 25 as open, yet iptables is NOT running. So is this a postfix is not listening on the public NIC? I will continue to read, etc. but I do remember setting up the mynetworks or something param for just the 127 localhost.

** edit **
I did verify inet_intefaces = all is setup (telling the box to listen on all), and netstat for servers shows;

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 18627/mysqld
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2080/master
tcp 0 0 :::993 :::* LISTEN 5001/dovecot
tcp 0 0 :::995 :::* LISTEN 5001/dovecot
tcp 0 0 :::110 :::* LISTEN 5001/dovecot
tcp 0 0 :::143 :::* LISTEN 5001/dovecot
tcp 0 0 :::80 :::* LISTEN 4401/httpd
tcp 0 0 :::22 :::* LISTEN 2128/sshd

Looking at that I would think the 0.0.0.0:* would mean everyone. iptables is not running, but not sure what else would refuse the outside connect. SElinux is disabled, iptables is stopped, so it it postfix, then what else to chage... back to reading!

Last edited by sir-lancealot; 03-21-2011 at 09:30 AM.
 
Old 03-21-2011, 12:57 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
the netstat output doesn't show that postfix is listening on the external interface. it should look something like this:
Code:
[root@host ~]# netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
...
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN
if you made changes to inet_interfaces, postfix should be restarted, not just reloaded.

once done, you should test smtp by telnet from a machine on your LAN, but not from the postfix server itself. then, test
from a machine outside the LAN.
 
  


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
postfix+dovecot closed community setup _ian_ Linux - Server 2 05-24-2010 03:17 AM
postfix, dovecot - setup for Thunderbird with SASL - how ? dlugasx Linux - Server 0 11-11-2009 07:46 AM
Setup Mail Server with Postfix/Dovecot/SquirrelMail olddocks Linux - Server 2 03-24-2009 02:34 AM
EMail server setup: FC6+Postfix+Dovecot+Squirrelmail rdnewman Linux - Networking 5 08-04-2007 07:59 PM
Spamassassin setup with Postfix, Dovecot and Amavisd snurckle Linux - General 2 04-07-2005 01:16 PM

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

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