You are not logged in.

#1 2009-01-30 12:20:34

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

[solved] cannot receive external mail in postfix

i've recently set up postfix and dovecot as covered in the arch wiki.

i'm able receive mails internally (sent either by telnet or by connecting to the local imap server with sylpheed), and send mails to external email addresses.

however, i cannot receive any mails/connect to my imap server from outside my network.

my router forwards port 25 to my box, iptables is set to allow tcp traffic on 25, and afaik my isp isn't blocking the port.
there is nothing about outside connection attempts in /var/log/mail.log and /var/log/iptables.log .

assuming my domain is example.com, my hostname is jsrv and my ip 123.123.123.123, i have my records setup as follows:

example.com   MX 10   mail.example.com
mail.example.com   A   123.123.123.123

mxtoolbox.org diagnostics returns the following messages:

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 123.123.123.123:25

and sometimes

A socket operation was attempted to an unreachable network 123.123.123.123

a portscan shows port 25 as closed from outside the network...

any ideas? could i have fucked up my configuration to only accept local mail? maybe it's hosts.allow?

here's my abbreviated main.cf:

# Paths
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
# Domain settings
myhostname = example.com
myorigin = example.com
mydestination = $myhostname, localhost.$mydomain, localhost, jsrv
# Network settings
inet_interfaces = all
inet_protocols = ipv4
mynetworks = 127.0.0.0/8
# Email and mailbox settings
alias_maps = hash:/etc/postfix/aliases
alias_database = $alias_maps
home_mailbox = Maildir/
virtual_alias_domains = example.com
virtual_alias_maps = hash:/etc/postfix/virtual

sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/man
sample_directory = /etc/postfix/sample
readme_directory = no
recipient_delimiter = +

thanks!

Last edited by schuay (2009-01-31 08:42:30)

Offline

#2 2009-01-30 15:02:39

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [solved] cannot receive external mail in postfix

What happens if you do

telnet example.com 25 (from outside of your network)

a portscan shows port 25 as closed from outside the network...

If that is the case it seems as if you didn't forward the ports correctly, or your isp is blocking the port.

Last edited by pyther (2009-01-30 15:14:44)


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2009-01-31 08:42:13

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [solved] cannot receive external mail in postfix

thanks for the reply - i didn't want to believe it, but the ISP just confirmed it. they block port 25 except with the server package..

Offline

#4 2009-01-31 09:20:54

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [solved] cannot receive external mail in postfix

schuay wrote:

thanks for the reply - i didn't want to believe it, but the ISP just confirmed it. they block port 25 except with the server package..

I can't believe ISPs still do that...


neutral

Offline

Board footer

Powered by FluxBB