Re: [CentOS] Not receiving mail
Got it! I had to set these three last values: postconf -e 'mydomain = sharingcenter.eu' postconf -e 'myhostname - mail.sharingcenter.eu' postconf -e 'myhostname = mail.sharingcenter.eu' postconf -e 'mynetworks = 178.63.65.136' postconf -e 'mydestination = $myhostname, localhost.$mydomain, localhost, sharingcenter.eu, mail.sharingcenter.eu' I thank you guys for your patience and help. I just spent a good few hours googling today and working my way around blogs, documentation, howto articles, forum posts, mailing list archives, and the like. I wouldn't have even known what to google for without the patient and helpful assistance I've received here. When it is said that CentOS is a Community ENTerprise Operating System be there no mistake! Cold beer for anyone visiting Israel soon! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On 21/10/10 6:17 AM, Dotan Cohen wrote: I thank you guys for your patience and help. No problem. I just spent a good few hours googling today and working my way around blogs, documentation, howto articles, forum posts, mailing list archives, and the like. I wouldn't have even known what to google for without the patient and helpful assistance I've received here. When it is said that CentOS is a Community ENTerprise Operating System be there no mistake! Heh. It probably helps that I'm also subscribed to the postfix-users mailing list, which frequently addresses issues like this. I highly recommend it for anyone running postfix, even just as a lurker. Also, Wietse posts regularly to that list. Cold beer for anyone visiting Israel soon! If I could afford to visit, I'd take you up on that! :) Regards, Ben signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
No the example above shows a telnet to port 25 connecting - which I can reproduce too - but there is no 220 response as there should be from a I am late to the thread (and I haven't a clue what we are talking about in fact), but I get a 220 when I telnet into that IP address... Escape character is '^]'. 220 mercury.localdomain ESMTP Postfix ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Ian Murray wrote: No the example above shows a telnet to port 25 connecting - which I can reproduce too - but there is no 220 response as there should be from a I am late to the thread (and I haven't a clue what we are talking about in fact), but I get a 220 when I telnet into that IP address... Escape character is '^]'. 220 mercury.localdomain ESMTP Postfix Odd. Why would it say localdomain? mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
[herr...@stones herrold]$ telnet 178.63.65.136 25 Trying 178.63.65.136... Connected to 178.63.65.136. Escape character is '^]'. 220 mercury.localdomain ESMTP Postfix quit 221 2.0.0 Bye Connection closed by foreign host. [herr...@stones herrold]$ Something between your local setup and 178.63.65.136 is blocking you -- Solve that -- it is NOT a centos issue at this point -- Russ herrold ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos In fact Russ was here before me as he says, it is likely a connectivity issue... not a mail issue. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On 20/10/10 5:42 AM, m.r...@5-cent.us wrote: Ian Murray wrote: No the example above shows a telnet to port 25 connecting - which I can reproduce too - but there is no 220 response as there should be from a I am late to the thread (and I haven't a clue what we are talking about in fact), but I get a 220 when I telnet into that IP address... Escape character is '^]'. 220 mercury.localdomain ESMTP Postfix Odd. Why would it say localdomain? He probably has an incorrect myhostname or mydomain value in main.cf. From the look of the postconf -n he posted, he hasn't specified either of these. From the relevant section in Dotan's postconf -n: mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix The equivalent section in mine (sanitised because copying pasting is not the solution): mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = example.com myhostname = mail.example.com mynetworks = 127.0.0.0/8, 192.168.1.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix Regards, Ben signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 01:46, Ryan Wagoner rswago...@gmail.com wrote: You will want to check your DNS and try to telnet to the server. If your server is behind NAT or you run split-dns it would be advisable to try it from another connection. dig mx yourdomain.com telnet smtp.yourdomain.com 25 Of course if your mx record points to something other than smtp.yourdomain.com you will want to use that instead. Thanks, Ryan. The MX record looks fine, but telnet won't connect: ✈dcl:~$ dig mx sharingcenter.eu ; DiG 9.7.1-P2 mx sharingcenter.eu ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 22263 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;sharingcenter.eu. IN MX ;; ANSWER SECTION: sharingcenter.eu. 86400 IN MX 10 mail.sharingcenter.eu. ;; AUTHORITY SECTION: sharingcenter.eu. 86400 IN NS ns2.sharingcenter.eu. sharingcenter.eu. 86400 IN NS ns1.sharingcenter.eu. ;; ADDITIONAL SECTION: mail.sharingcenter.eu. 86400 IN A 178.63.65.136 ;; Query time: 88 msec ;; SERVER: 212.150.49.10#53(212.150.49.10) ;; WHEN: Mon Oct 18 21:52:25 2010 ;; MSG SIZE rcvd: 107 ✈dcl:~$ telnet sharingcenter.eu 25 Trying 178.63.65.188... ^C ✈dcl:~$ telnet mail.sharingcenter.eu 25 Trying 178.63.65.136... telnet: Unable to connect to remote host: No route to host ✈dcl:~$ On the server, it looks like everything is running as it should: [r...@mercury ~]# service postfix status master (pid 31800) is running... [r...@mercury ~]# service dovecot status dovecot (pid 29751) is running... [r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25 tcp0 0 127.0.0.1:250.0.0.0:* LISTEN 31800/master [r...@mercury ~]# What could I be missing? The logs are clean. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Am 18.10.2010 22:02, schrieb Dotan Cohen: On the server, it looks like everything is running as it should: [r...@mercury ~]# service postfix status master (pid 31800) is running... [r...@mercury ~]# service dovecot status dovecot (pid 29751) is running... [r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25 tcp0 0 127.0.0.1:250.0.0.0:* LISTEN 31800/master [r...@mercury ~]# The daemon is bound to localhost only. What could I be missing? The logs are clean. postconf -e 'inet_interfaces = all' service postfix restart Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 22:06, Alexander Dalloz ad+li...@uni-x.org wrote: The daemon is bound to localhost only. Yes, that would be a problem! What could I be missing? The logs are clean. postconf -e 'inet_interfaces = all' service postfix restart Thanks! However, even after the change and confirming that postfix is listening properly: [r...@mercury ~]# postconf -e 'inet_interfaces = all' [r...@mercury ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25 tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7816/master [r...@mercury ~]# I still cannot cannot connect with telnet: ✈dcl:~$ telnet sharingcenter.eu 25 Trying 178.63.65.188... Trying 178.63.65.136... telnet: Unable to connect to remote host: Connection timed out ✈dcl:~$ telnet mail.sharingcenter.eu 25 Trying 178.63.65.136... telnet: Unable to connect to remote host: No route to host ✈dcl:~$ ping sharingcenter.eu PING sharingcenter.eu (178.63.65.188) 56(84) bytes of data. 64 bytes from static.188.65.63.178.clients.your-server.de (178.63.65.188): icmp_req=1 ttl=50 time=85.0 ms 64 bytes from static.188.65.63.178.clients.your-server.de (178.63.65.188): icmp_req=2 ttl=50 time=189 ms 64 bytes from static.188.65.63.178.clients.your-server.de (178.63.65.188): icmp_req=3 ttl=50 time=92.0 ms ^C --- sharingcenter.eu ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 85.069/122.275/189.675/47.745 ms ✈dcl:~$ Why might that be? -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Dotan Cohen wrote: On Mon, Oct 18, 2010 at 22:06, Alexander Dalloz ad+li...@uni-x.org wrote: snip Thanks! However, even after the change and confirming that postfix is listening properly: snip I still cannot cannot connect with telnet: âdcl:~$ telnet sharingcenter.eu 25 Trying 178.63.65.188... Trying 178.63.65.136... telnet: Unable to connect to remote host: Connection timed out âdcl:~$ telnet mail.sharingcenter.eu 25 Trying 178.63.65.136... telnet: Unable to connect to remote host: No route to host snip Coming in late, and sorry if this has been suggested, but could it be a firewall rule blocking it? mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On 10/18/2010 04:18 PM, Dotan Cohen wrote: On Mon, Oct 18, 2010 at 22:06, Alexander Dallozad+li...@uni-x.org wrote: The daemon is bound to localhost only. Yes, that would be a problem! What could I be missing? The logs are clean. postconf -e 'inet_interfaces = all' service postfix restart Thanks! However, even after the change and confirming that postfix is listening properly: [r...@mercury ~]# postconf -e 'inet_interfaces = all' [r...@mercury ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [r...@mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25 tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7816/master [r...@mercury ~]# I still cannot cannot connect with telnet: ?dcl:~$ telnet sharingcenter.eu 25 Trying 178.63.65.188... Trying 178.63.65.136... telnet: Unable to connect to remote host: Connection timed out ?dcl:~$ telnet mail.sharingcenter.eu 25 Trying 178.63.65.136... telnet: Unable to connect to remote host: No route to host ?dcl:~$ ping sharingcenter.eu PING sharingcenter.eu (178.63.65.188) 56(84) bytes of data. 64 bytes from static.188.65.63.178.clients.your-server.de (178.63.65.188): icmp_req=1 ttl=50 time=85.0 ms 64 bytes from static.188.65.63.178.clients.your-server.de (178.63.65.188): icmp_req=2 ttl=50 time=189 ms 64 bytes from static.188.65.63.178.clients.your-server.de (178.63.65.188): icmp_req=3 ttl=50 time=92.0 ms ^C --- sharingcenter.eu ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 85.069/122.275/189.675/47.745 ms ?dcl:~$ Why might that be? Firewall? -- Stephen Clark *NetWolves* Sr. Software Engineer III Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.cl...@netwolves.com http://www.netwolves.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
No, I should have mentioned that the firewall is open: [r...@mercury public_html]# iptables -L -n -v Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination [r...@mercury public_html]# -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 22:34, Steve Clark scl...@netwolves.com wrote: Hmm... I am not having any problem connecting from the U.S. ping 178.63.65.136 PING 178.63.65.136 (178.63.65.136) 56(84) bytes of data. 64 bytes from 178.63.65.136: icmp_seq=1 ttl=49 time=140 ms 64 bytes from 178.63.65.136: icmp_seq=2 ttl=49 time=142 ms 64 bytes from 178.63.65.136: icmp_seq=3 ttl=49 time=138 ms telnet 178.63.65.136 25 Trying 178.63.65.136... Connected to 178.63.65.136. Escape character is '^]'. ^] telnet close Connection closed. Exactly the problem! It pings fine (so I know that connections can be established over the physical wires) and on the IP address telnet answers. However, telnet to port 25 (smtp) with the domain name fails. Why could that be? -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Dotan Cohen wrote: On Mon, Oct 18, 2010 at 22:34, Steve Clark scl...@netwolves.com wrote: Hmm... I am not having any problem connecting from the U.S. snip telnet 178.63.65.136 25 Trying 178.63.65.136... Connected to 178.63.65.136. Escape character is '^]'. ^] telnet close Connection closed. Exactly the problem! It pings fine (so I know that connections can be established over the physical wires) and on the IP address telnet answers. However, telnet to port 25 (smtp) with the domain name fails. Why could that be? Bingo! DNS. mark ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 22:47, m.r...@5-cent.us wrote: Bingo! DNS. No, even on the IP address telnet won't answer on port 25: ✈dcl:~$ telnet 178.63.65.188 25 Trying 178.63.65.188... telnet: Unable to connect to remote host: Connection timed out ✈dcl:~$ -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, 2010-10-18 at 22:38 +0200, Dotan Cohen wrote: Exactly the problem! It pings fine (so I know that connections can be established over the physical wires) and on the IP address telnet answers. However, telnet to port 25 (smtp) with the domain name fails. Why could that be? --- Why not post your config file so peeps can have a look at it? John ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On 10/18/2010 3:38 PM, Dotan Cohen wrote: On Mon, Oct 18, 2010 at 22:34, Steve Clarkscl...@netwolves.com wrote: Hmm... I am not having any problem connecting from the U.S. ping 178.63.65.136 PING 178.63.65.136 (178.63.65.136) 56(84) bytes of data. 64 bytes from 178.63.65.136: icmp_seq=1 ttl=49 time=140 ms 64 bytes from 178.63.65.136: icmp_seq=2 ttl=49 time=142 ms 64 bytes from 178.63.65.136: icmp_seq=3 ttl=49 time=138 ms telnet 178.63.65.136 25 Trying 178.63.65.136... Connected to 178.63.65.136. Escape character is '^]'. ^] telnet close Connection closed. Exactly the problem! It pings fine (so I know that connections can be established over the physical wires) and on the IP address telnet answers. However, telnet to port 25 (smtp) with the domain name fails. Why could that be? No the example above shows a telnet to port 25 connecting - which I can reproduce too - but there is no 220 response as there should be from a mailserver. Either the process is hung or configured to black/graylist unknown connections, or something other than mailserver is listening on port 25. Telnet is going to go to an A record, so you have to look up the MX record first, then telnet to the target. -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Am 18.10.2010 22:38, schrieb Dotan Cohen: On Mon, Oct 18, 2010 at 22:34, Steve Clark scl...@netwolves.com wrote: Hmm... I am not having any problem connecting from the U.S. ping 178.63.65.136 PING 178.63.65.136 (178.63.65.136) 56(84) bytes of data. 64 bytes from 178.63.65.136: icmp_seq=1 ttl=49 time=140 ms 64 bytes from 178.63.65.136: icmp_seq=2 ttl=49 time=142 ms 64 bytes from 178.63.65.136: icmp_seq=3 ttl=49 time=138 ms telnet 178.63.65.136 25 Trying 178.63.65.136... Connected to 178.63.65.136. Escape character is '^]'. ^] telnet close Connection closed. Exactly the problem! It pings fine (so I know that connections can be established over the physical wires) and on the IP address telnet answers. However, telnet to port 25 (smtp) with the domain name fails. Why could that be? Sorry, your problem is not DNS. The MX resolves. But if you talk to an MTA on port 25 you must get a greeting - that does not happen. Instead the connection hangs. While your www server works: ~ $ telnet 178.63.65.136 80 Trying 178.63.65.136... Connected to static.136.65.63.178.clients.your-server.de (178.63.65.136). Escape character is '^]'. GET / HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 18 Oct 2010 20:54:23 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Fri, 08 Oct 2010 21:00:56 GMT ETag: c7a1c2-28-4e88b200 Accept-Ranges: bytes Content-Length: 40 Connection: close Content-Type: text/html; charset=UTF-8 htmlbodyHello, world!/body/html Connection closed by foreign host. ~ $ telnet sharingcenter.eu 80 Trying 178.63.65.136... Connected to sharingcenter.eu (178.63.65.136). Escape character is '^]'. GET / HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 18 Oct 2010 20:55:16 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Fri, 08 Oct 2010 21:00:56 GMT ETag: c7a1c2-28-4e88b200 Accept-Ranges: bytes Content-Length: 40 Connection: close Content-Type: text/html; charset=UTF-8 htmlbodyHello, world!/body/html Connection closed by foreign host. I expect that even being local on the server(s) and running telnet localhost 25 results in a hung connection. You misconfigured your Postfix. Check your /var/log/maillog/ for startup errors. By any chance, did you bring down loopback or destroyed the localhost mapping in /etc/hosts? Or you have something broken in your main.cf. Post the output of postconf -n. Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, 2010-10-18 at 16:55 -0400, JohnS wrote: On Mon, 2010-10-18 at 22:38 +0200, Dotan Cohen wrote: Exactly the problem! It pings fine (so I know that connections can be established over the physical wires) and on the IP address telnet answers. However, telnet to port 25 (smtp) with the domain name fails. Why could that be? --- Why not post your config file so peeps can have a look at it? John Well I have now a feeling it's more involved the his config file John ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
I see now, since the last postfix restart the log is filling up with these: Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database /etc/aliases.db: No such file or directory Oct 18 22:59:43 mercury postfix/master[7816]: warning: process /usr/libexec/postfix/smtpd pid 11318 exit status 1 Oct 18 22:59:43 mercury postfix/master[7816]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling The problem will probably reveal itself here, but I will need to do a bit of googling to decipher it all. I admit that much of the configuration was done with tutorials that I googled, with limited understanding. That's how we learn! [r...@mercury ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_owner = postfix mailbox_command = mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_tls_note_starttls_offer = yes smtp_use_tls = yes smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_auth_only = no smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 [r...@mercury ~]# To what must I change /etc/aliases.db? Which fine manual should I be reading? -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 22:55, Todd Denniston todd.dennis...@tsb.cranrdte.navy.mil wrote: are you coming to it from a 178.63.65.* or from a private IP (even if through a NAT)? No, I'm pinging and telnetting in from another country! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On 10/18/10 2:08 PM, Dotan Cohen wrote: I see now, since the last postfix restart the log is filling up with these: Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database /etc/aliases.db: No such file or directory Oct 18 22:59:43 mercury postfix/master[7816]: warning: process /usr/libexec/postfix/smtpd pid 11318 exit status 1 To what must I change /etc/aliases.db? Which fine manual should I be reading? in sendmail at least, the command `newaliases` parses /etc/mail/aliases and creates /etc/mail/aliases.db ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 11:08:37PM +0200, Dotan Cohen wrote: I see now, since the last postfix restart the log is filling up with these: Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database /etc/aliases.db: No such file or directory Well, see if you have an /etc/aliases, which you should, even if it's a defaut. Then just run newaliases which will create an /etc/aliases.db The issues may be elsewhere, but get rid of that one. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 22:59, Alexander Dalloz ad+li...@uni-x.org wrote: By any chance, did you bring down loopback or destroyed the localhost mapping in /etc/hosts? Or you have something broken in your main.cf. Post the output of postconf -n. No, loopback works and there's nothing unusual about /etc/hosts. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 05:15:52PM -0400, Scott Robbins wrote: On Mon, Oct 18, 2010 at 11:08:37PM +0200, Dotan Cohen wrote: I see now, since the last postfix restart the log is filling up with these: Oct 18 22:59:42 mercury postfix/smtpd[11318]: fatal: open database /etc/aliases.db: No such file or directory Well, see if you have an /etc/aliases, which you should, even if it's a defaut. Then just run newaliases which will create an /etc/aliases.db The issues may be elsewhere, but get rid of that one. I should add that I think the actual postfix command is postalias and a ls -l /usr/bin/newaliases points to /etc/alternatives/mta-newaliases The newaliases command, as somone else commented, is the sendmail command and depending upon the system, e.g., in FreeBSD it's done in /etc/mail/mailer.conf, RH uses alternatives, and so on. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Angel: I've been around death before. A lot. I've lost people. I've killed people... Cordelia: And you are dead. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 23:15, Scott Robbins scot...@nyc.rr.com wrote: Well, see if you have an /etc/aliases, which you should, even if it's a defaut. Then just run newaliases which will create an /etc/aliases.db The issues may be elsewhere, but get rid of that one. Well, I tried: [r...@mercury ~]# ls -l /etc/aliases -rw-r--r-- 1 root root 1512 Apr 25 2005 /etc/aliases [r...@mercury ~]# newaliases [r...@mercury ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [r...@mercury ~]# service postfix status master (pid 12412) is running... [r...@mercury ~]# tail /var/log/maillog Oct 18 23:15:59 mercury postfix/master[7816]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=sami37, method=PLAIN, rip=:::127.0.0.1, lip=:::127.0.0.1, secured Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database /etc/aliases.db: No such file or directory Oct 18 23:17:00 mercury postfix/master[7816]: warning: process /usr/libexec/postfix/smtpd pid 12298 exit status 1 Oct 18 23:17:00 mercury postfix/master[7816]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Oct 18 23:17:49 mercury postfix/postfix-script: stopping the Postfix mail system Oct 18 23:17:49 mercury postfix/master[7816]: terminating on signal 15 Oct 18 23:17:49 mercury postfix/postfix-script: starting the Postfix mail system Oct 18 23:17:49 mercury postfix/master[12412]: daemon started -- version 2.3.3, configuration /etc/postfix [r...@mercury ~]# But it still won't connect: ✈dcl:~$ telnet mail.sharingcenter.eu 25 Trying 178.63.65.136... telnet: Unable to connect to remote host: Connection timed out ✈dcl:~$ telnet sharingcenter.eu 25 Trying 178.63.65.188... Trying 178.63.65.136... telnet: Unable to connect to remote host: Connection timed out ✈dcl:~$ -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Seeing how postfix could not access /etc/aliases I tried loosening the permissions, but still no luck: [r...@mercury ~]# chmod +rx /etc/aliases [r...@mercury ~]# newaliases [r...@mercury ~]# ls -l /etc/aliases -rwxr-xr-x 1 root root 1512 Apr 25 2005 /etc/aliases [r...@mercury ~]# service postfix status master (pid 12412) is running... [r...@mercury ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [r...@mercury ~]# tail /var/log/maillog Oct 18 23:29:02 mercury postfix/master[12412]: warning: process /usr/libexec/postfix/smtpd pid 12987 exit status 1 Oct 18 23:29:02 mercury postfix/master[12412]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Oct 18 23:29:17 mercury postfix/postalias[13000]: fatal: usage: postalias [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] [map_type:]file... Oct 18 23:29:52 mercury postfix/postfix-script: stopping the Postfix mail system Oct 18 23:29:52 mercury postfix/master[12412]: terminating on signal 15 Oct 18 23:29:52 mercury postfix/postfix-script: starting the Postfix mail system Oct 18 23:29:52 mercury postfix/master[13090]: daemon started -- version 2.3.3, configuration /etc/postfix Oct 18 23:30:00 mercury postfix/smtpd[13106]: fatal: open database /etc/aliases.db: No such file or directory Oct 18 23:30:01 mercury postfix/master[13090]: warning: process /usr/libexec/postfix/smtpd pid 13106 exit status 1 Oct 18 23:30:01 mercury postfix/master[13090]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling [r...@mercury ~]# date Mon Oct 18 23:30:08 CEST 2010 [r...@mercury ~]# -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Am 18.10.2010 23:22, schrieb Dotan Cohen: Well, I tried: [r...@mercury ~]# ls -l /etc/aliases -rw-r--r-- 1 root root 1512 Apr 25 2005 /etc/aliases [r...@mercury ~]# newaliases [r...@mercury ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [r...@mercury ~]# service postfix status master (pid 12412) is running... [r...@mercury ~]# tail /var/log/maillog Oct 18 23:15:59 mercury postfix/master[7816]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=sami37, method=PLAIN, rip=:::127.0.0.1, lip=:::127.0.0.1, secured Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database /etc/aliases.db: No such file or directory Sendmail is still the default on CentOS. So to switch to Postfix you will have to use the mechanism to relink - using alternatives. What prints out: alternatives --display mta If that tells you that Sendmail is still the primary MTA, then run: alternatives --config mta and select Postfix. Then rerun newaliases or postalias /etc/aliases. Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Am 18.10.2010 23:31, schrieb Dotan Cohen: Seeing how postfix could not access /etc/aliases I tried loosening the permissions, but still no luck: [r...@mercury ~]# chmod +rx /etc/aliases It is *NOT* the /etc/aliases plain text file Postfix tries to read in at startup. It is the hashed map /etc/aliases.db! And it is sufficient if root can read/write both files. Alexander ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 23:31, Alexander Dalloz ad+li...@uni-x.org wrote: Sendmail is still the default on CentOS. So to switch to Postfix you will have to use the mechanism to relink - using alternatives. What prints out: alternatives --display mta You found it! [r...@mercury ~]# alternatives --display mta mta - status is manual. link currently points to /usr/sbin/sendmail.exim /usr/sbin/sendmail.exim - priority 10 slave mta-pam: /etc/pam.d/exim slave mta-mailq: /usr/bin/mailq.exim slave mta-newaliases: /usr/bin/newaliases.exim slave mta-rmail: /usr/bin/rmail.exim slave mta-rsmtp: /usr/bin/rsmtp.exim slave mta-runq: /usr/bin/runq.exim slave mta-sendmail: /usr/lib/sendmail.exim slave mta-mailqman: /usr/share/man/man8/exim.8.gz slave mta-newaliasesman: (null) slave mta-aliasesman: (null) slave mta-sendmailman: (null) /usr/sbin/sendmail.postfix - priority 30 slave mta-pam: /etc/pam.d/smtp.postfix slave mta-mailq: /usr/bin/mailq.postfix slave mta-newaliases: /usr/bin/newaliases.postfix slave mta-rmail: /usr/bin/rmail.postfix slave mta-rsmtp: (null) slave mta-runq: (null) slave mta-sendmail: /usr/lib/sendmail.postfix slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz Current `best' version is /usr/sbin/sendmail.postfix. If that tells you that Sendmail is still the primary MTA, then run: alternatives --config mta and select Postfix. Then rerun newaliases or postalias /etc/aliases. Done! I then restarted postfix and there seem to be no new errors in the logs. However, I still cannot telnet into port 25: ✈dcl:~$ telnet sharingcenter.eu 25 Trying 178.63.65.188... Trying 178.63.65.136... telnet: Unable to connect to remote host: No route to host ✈dcl:~$ telnet mail.sharingcenter.eu 25 Trying 178.63.65.136... telnet: Unable to connect to remote host: Connection timed out ✈dcl:~$ -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On 10/18/10 2:22 PM, Dotan Cohen wrote: On Mon, Oct 18, 2010 at 23:15, Scott Robbinsscot...@nyc.rr.com wrote: Well, see if you have an /etc/aliases, which you should, even if it's a defaut. Then just run newaliases which will create an /etc/aliases.db The issues may be elsewhere, but get rid of that one. Well, I tried: [r...@mercury ~]# ls -l /etc/aliases -rw-r--r-- 1 root root 1512 Apr 25 2005 /etc/aliases [r...@mercury ~]# newaliases [r...@mercury ~]# service postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [r...@mercury ~]# service postfix status master (pid 12412) is running... [r...@mercury ~]# tail /var/log/maillog Oct 18 23:15:59 mercury postfix/master[7816]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Oct 18 23:16:18 mercury dovecot: imap-login: Login: user=sami37, method=PLAIN, rip=:::127.0.0.1, lip=:::127.0.0.1, secured Oct 18 23:16:18 mercury dovecot: IMAP(sami37): Disconnected: Logged out Oct 18 23:16:59 mercury postfix/smtpd[12298]: fatal: open database /etc/aliases.db: No such file or directory Oct 18 23:17:00 mercury postfix/master[7816]: warning: process /usr/libexec/postfix/smtpd pid 12298 exit status 1 Oct 18 23:17:00 mercury postfix/master[7816]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Oct 18 23:17:49 mercury postfix/postfix-script: stopping the Postfix mail system Oct 18 23:17:49 mercury postfix/master[7816]: terminating on signal 15 Oct 18 23:17:49 mercury postfix/postfix-script: starting the Postfix mail system Oct 18 23:17:49 mercury postfix/master[12412]: daemon started -- version 2.3.3, configuration /etc/postfix [r...@mercury ~]# But it still won't connect: no kidding. look at that log, it didn't start. (last 3 lines notwithstanding, every else there looks like 'error' to me) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Mon, Oct 18, 2010 at 23:46, John R Pierce pie...@hogranch.com wrote: no kidding. look at that log, it didn't start. (last 3 lines notwithstanding, every else there looks like 'error' to me) Yes, those error were before I removed sendmail from the default config. Even though it seems to be answering on post 25 now, mail sent to an account there from Gmail are not being received. No errors in the logs. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
Yes, those error were before I removed sendmail from the default config. Even though it seems to be answering on post 25 now, mail sent to an account there from Gmail are not being received. No errors in the logs. -- Dotan Cohen stupid's question: what happens if you disable selinux? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Not receiving mail
On Sun, Oct 17, 2010 at 6:39 PM, Dotan Cohen dotanco...@gmail.com wrote: I have installed Postfix, Dovecot, and Squirrelmail on a CentOS 5.5 machine. In Squirrelmail a user can send mail, but he is not receiving replies. There is nothing relevant in the maillog other than the user's (successful) login attempts. I am at loss, I have been following tutorials such as the Perfect Server [1] series and other Google results, but I cannot get this thing to receive mail. What should I be checking? Thanks! [1] http://www.howtoforge.com/perfect-server-centos-5.5-x86_64-ispconfig-2 -- Dotan Cohen You will want to check your DNS and try to telnet to the server. If your server is behind NAT or you run split-dns it would be advisable to try it from another connection. dig mx yourdomain.com telnet smtp.yourdomain.com 25 Of course if your mx record points to something other than smtp.yourdomain.com you will want to use that instead. Ryan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos