Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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
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]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.