LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2011, 09:23 AM   #16
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899

Quote:
Originally Posted by teebones View Post
only BAD configured smtp's do that. PBL blocking e.g. (spamhaus)
PBL is not a blacklist, although some lame ass mta administrators think so (because they block every IP in the PBL, thus lots of problems for their customers).

An MTA purely by itself would not know if the IP of the sender is Dynamic or static.
Secondly, infact each IP is dynamic in technical terms, since each netblock can be revoked, used as the LIR wants etc..
Can change as see fit...(thus dynamic)
This has nothing to do with bad configuration or admins.
There is no reason to run a mail server from a dynamic IP
It's refused by smtp servers, to reduce spam, same reason why most ISP's close port 25 on their dynamic ip pools

Kind regards
 
Old 01-18-2011, 09:30 AM   #17
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
ooh now i see what you mean.

You are talking about ISP customers, not isp as in receiving party alone.
Right, well that has nothing to do with MTA's communications, but with the configurations done by the admins.

Indeed some isp's block outgoing smtp on the customers end directly, the customer can can only use the isp' mta to send the mail.
Some isp's however, allow you this: mta setup using a mail-gateway, so you still can host your own mta on the customers end, and use the isp mta as a transparent passthough/gateway.

I thought you were talking about mta's in general, and IP's in general.
 
Old 01-18-2011, 12:16 PM   #18
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Linux Mint
Posts: 266

Original Poster
Rep: Reputation: 35
Any ideas whats going on here guys?

Code:
Jan 18 18:09:17 homeserver postfix/smtp[21228]: B2090DA20F: to=<root@mymail.com>, orig_to=<root>, relay=none, delay=555, delays=525/0.1/30/0, dsn=4.4.1, status=deferred (connect to smtp.mymail.com[xx.xx.xx.xx]:25: Connection timed out)
Jan 18 18:09:17 homeserver postfix/smtp[21228]: flush_add: site mymail.com id B2090DA20F
Jan 18 18:09:17 homeserver postfix/smtp[21228]: match_hostname: mymail.com ~? mail.mymail.com
Jan 18 18:09:17 homeserver postfix/smtp[21228]: match_hostname: mymail.com ~? localhost.mymail.com
Jan 18 18:09:17 homeserver postfix/smtp[21228]: match_list_match: mymail.com: no match
Jan 18 18:09:17 homeserver postfix/smtp[21228]: flush_add: site mymail.com id B2090DA20F status 4
Jan 18 18:09:17 homeserver postfix/smtp[21228]: deliver_request_final: send: "connect to smtp.mymail.com[xx.xx.xx.xx]:25: Connection timed out" -1

Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr status = 4.4.1
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr diag_type = 
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr diag_text = 
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr mta_type = 
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr mta_mname = 
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr action = 
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr reason = connect to smtp.mymail.com[xx.xx.xxx.xx]:25: Connection timed out
Jan 18 18:09:17  homeserver postfix/smtp[21228]: send attr status = 4294967295
Jan 18 18:09:17  homeserver postfix/smtp[21228]: master_notify: status 1
Jan 18 18:09:17  homeserver postfix/smtp[21228]: connection closed
Or shall I post this in a new thread???

Cheers
 
Old 01-18-2011, 12:44 PM   #19
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Jan 18 18:09:17 homeserver postfix/smtp[21228]: deliver_request_final: send: "connect to smtp.mymail.com[xx.xx.xx.xx]:25: Connection timed out" -1
Can you connect to port 25 ?
Is postfix running an accepting connections?
from a terminal on the server type:
Code:
telnet 127.0.0.1 25
any firewall?

Kind regards
 
Old 01-18-2011, 03:44 PM   #20
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Linux Mint
Posts: 266

Original Poster
Rep: Reputation: 35
Code:
# telnet smtp.mymail.com 25
Trying 127.0.0.1...
Connected to mail.mymail.com.
Escape character is '^]'.
220 mail.mymail.com ESMTP Postfix (Ubuntu)
ehlo mail.mymail.com
250-mail.mymail.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

I have this in my /etc/host file and I am wondering if it is correct or not??

Code:
127.0.0.1 mail.mymail.com localhost.mymail.com localhost
192.168.1.4 myfirstdomain.net www.myfirstdomain.net
192.168.1.7 mymail.com mail.mymail.com smtp.mymail.com
Basically I have set up a virtual NIC "eth0:1" to host the mail and "eth0" is hosting my main domain traffic. I have 2 domains on 1 server as you can see.

The main one is used for ftp/web/ssh traffic and virtual for mail only.
 
Old 01-18-2011, 03:47 PM   #21
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Linux Mint
Posts: 266

Original Poster
Rep: Reputation: 35
Oh and the IP in the line
Code:
connect to smtp.mymail.com[xx.xx.xx.xx]:25: Connection timed out
I mentioned above is my static WAN IP address. Not a local LAN IP.

Cheers
 
Old 01-18-2011, 04:07 PM   #22
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to telnet from the outside to your wan ip
Is port 25 forwarded to the server at the router?
Firewall?
Verify with your provider if port 25 is open

Kind regards
 
Old 01-19-2011, 03:36 AM   #23
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Linux Mint
Posts: 266

Original Poster
Rep: Reputation: 35
This is from a connection outside of my LAN....

Code:
# telnet xx.xx.xxx.xx 25
Trying xx.xx.xxx.xx                                                                         ...
Connected to mail.mymail.com.
Escape character is '^]'.
220 mail.mymail.com ESMTP Postfix (Ubuntu)
ehlo mail.mymail.com
250-mail.mymail.com
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
 
Old 01-19-2011, 05:45 AM   #24
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps you can start a new thread, so postfix guru's can verify
the conf files from postfix


Kind regards
 
Old 01-19-2011, 10:03 AM   #25
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Linux Mint
Posts: 266

Original Poster
Rep: Reputation: 35
OK I will open a new post. Thanks for you assistance so far.

Marking as solved
 
  


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
Use postfix send mail return 'relay access denied' ??need help!! xiaolong85 Linux - Server 6 01-24-2010 12:36 PM
Relay access denied while sending from external mail clients spokz Linux - Server 2 11-16-2008 08:47 AM
Postfix Relay access denied outgoing mail alitrix Linux - Server 2 06-14-2008 03:38 PM
Postfix: Relay access denied whenever sending e-mail Doug52392 Linux - Server 1 11-11-2007 04:21 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM


All times are GMT -5. The time now is 08: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration