FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 10-18-2010, 08:51 PM
Dotan Cohen
 
Default Not receiving mail

On Mon, Oct 18, 2010 at 22:47, <m.roth@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
 
Old 10-18-2010, 08:55 PM
JohnS
 
Default 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
 
Old 10-18-2010, 08:55 PM
Todd Denniston
 
Default Not receiving mail

Dotan Cohen wrote, On 10/18/2010 04:51 PM:
> On Mon, Oct 18, 2010 at 22:47, <m.roth@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:~$
>
>

are you coming to it from a 178.63.65.* or from a private IP (even if through a NAT)?

i.e. could there be one of those router things that does not pass private IP traffic on through
between you and it?

Grasping at a straw that look like a thought.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-18-2010, 08:55 PM
Les Mikesell
 
Default Not receiving mail

On 10/18/2010 3:38 PM, Dotan Cohen wrote:
> On Mon, Oct 18, 2010 at 22:34, Steve Clark<sclark@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
lesmikesell@gmail.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-18-2010, 08:59 PM
Alexander Dalloz
 
Default Not receiving mail

Am 18.10.2010 22:38, schrieb Dotan Cohen:
> On Mon, Oct 18, 2010 at 22:34, Steve Clark <sclark@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

<html><body>Hello, 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

<html><body>Hello, 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
 
Old 10-18-2010, 09:03 PM
JohnS
 
Default 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
 
Old 10-18-2010, 09:08 PM
Dotan Cohen
 
Default 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!

[root@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
[root@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
 
Old 10-18-2010, 09:10 PM
Dotan Cohen
 
Default Not receiving mail

On Mon, Oct 18, 2010 at 22:55, Todd Denniston
<Todd.Denniston@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
 
Old 10-18-2010, 09:12 PM
John R Pierce
 
Default 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
 
Old 10-18-2010, 09:15 PM
Scott Robbins
 
Default 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
 

Thread Tools




All times are GMT. The time now is 06:57 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org