HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Can Send Email, But Not Recieve (http://www.howtoforge.com/forums/showthread.php?t=13087)

mfdp10 1st June 2007 00:36

Can Send Email, But Not Recieve
 
Please help...
Can Send Email, But Not Recieve
Debian 4.0
ISPConfig

Main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = server1.alojat.com.ar
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.alojat.com.ar, localhost.alojat.com.ar, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names


mail.log

May 31 23:59:02 server1 postfix/master[3615]: daemon started -- version 2.3.8, configuration /etc/postfix
Jun 1 00:05:56 server1 postfix/master[3615]: reload configuration /etc/postfix
Jun 1 00:05:56 server1 postfix/qmgr[4143]: C62835D82F3: from=<mauricio@guardamar.com.ar>, size=532, nrcpt=1 (queue active)
Jun 1 00:05:56 server1 postfix/qmgr[4143]: C22BF5D82F5: from=<mauricio@guardamar.com.ar>, size=528, nrcpt=1 (queue active)
Jun 1 00:05:56 server1 postfix/qmgr[4143]: D19AC5D82CB: from=<mfdp10@yahoo.com.ar>, size=1453, nrcpt=1 (queue active)
Jun 1 00:05:57 server1 postfix/master[3615]: reload configuration /etc/postfix
Jun 1 00:05:57 server1 postfix/qmgr[4220]: C62835D82F3: skipped, still being delivered
Jun 1 00:05:57 server1 postfix/qmgr[4220]: C22BF5D82F5: skipped, still being delivered
Jun 1 00:05:57 server1 postfix/qmgr[4220]: D19AC5D82CB: skipped, still being delivered
Jun 1 00:05:57 server1 postfix/qmgr[4220]: C62835D82F3: skipped, still being delivered
Jun 1 00:05:57 server1 postfix/qmgr[4220]: C22BF5D82F5: skipped, still being delivered
Jun 1 00:05:57 server1 postfix/qmgr[4220]: D19AC5D82CB: skipped, still being delivered
Jun 1 00:06:27 server1 postfix/smtp[4178]: connect to alojat.com.ar[88.14.6.191]: Connection timed out (port 25)
Jun 1 00:06:27 server1 postfix/smtp[4178]: D19AC5D82CB: to=<web6_mauricio@server1.alojat.com.ar>, orig_to=<mauricio@guardamar.com.ar>, relay=none, delay=172611, delays=172580/0.12/31/0, dsn=4.4.1, status=deferred (connect to alojat.com.ar[88.14.6.191]: Connection timed out)
Jun 1 00:06:29 server1 postfix/smtp[4165]: connect to alojat.com.ar[88.14.6.191]: Connection timed out (port 25)
Jun 1 00:06:29 server1 postfix/smtp[4165]: C62835D82F3: to=<web10_mauricio@server1.alojat.com.ar>, orig_to=<mauricio@guardamar.com.ar>, relay=none, delay=87871, delays=87838/0.43/33/0, dsn=4.4.1, status=deferred (connect to alojat.com.ar[88.14.6.191]: Connection timed out)
Jun 1 00:06:29 server1 postfix/smtp[4177]: connect to alojat.com.ar[88.14.6.191]: Connection timed out (port 25)
Jun 1 00:06:29 server1 postfix/smtp[4177]: C22BF5D82F5: to=<web10_mauricio@server1.alojat.com.ar>, orig_to=<mauricio@guardamar.com.ar>, relay=none, delay=82616, delays=82583/0.19/33/0, dsn=4.4.1, status=deferred (connect to alojat.com.ar[88.14.6.191]: Connection timed out)
Jun 1 00:10:57 server1 postfix/qmgr[4220]: C62835D82F3: from=<mauricio@guardamar.com.ar>, size=532, nrcpt=1 (queue active)
Jun 1 00:10:57 server1 postfix/qmgr[4220]: C22BF5D82F5: from=<mauricio@guardamar.com.ar>, size=528, nrcpt=1 (queue active)
Jun 1 00:10:57 server1 postfix/qmgr[4220]: D19AC5D82CB: from=<mfdp10@yahoo.com.ar>, size=1453, nrcpt=1 (queue active)
Jun 1 00:11:28 server1 postfix/smtp[4458]: connect to alojat.com.ar[88.14.6.191]: Connection timed out (port 25)
Jun 1 00:11:28 server1 postfix/smtp[4458]: C22BF5D82F5: to=<web10_mauricio@server1.alojat.com.ar>, orig_to=<mauricio@guardamar.com.ar>, relay=none, delay=82915, delays=82884/0.11/30/0, dsn=4.4.1, status=deferred (connect to alojat.com.ar[88.14.6.191]: Connection timed out)
Jun 1 00:11:29 server1 postfix/smtp[4456]: connect to alojat.com.ar[88.14.6.191]: Connection timed out (port 25)
Jun 1 00:11:29 server1 postfix/smtp[4456]: C62835D82F3: to=<web10_mauricio@server1.alojat.com.ar>, orig_to=<mauricio@guardamar.com.ar>, relay=none, delay=88171, delays=88139/0.1/32/0, dsn=4.4.1, status=deferred (connect to alojat.com.ar[88.14.6.191]: Connection timed out)
Jun 1 00:11:30 server1 postfix/smtp[4459]: connect to alojat.com.ar[88.14.6.191]: Connection timed out (port 25)
Jun 1 00:11:30 server1 postfix/smtp[4459]: D19AC5D82CB: to=<web6_mauricio@server1.alojat.com.ar>, orig_to=<mauricio@guardamar.com.ar>, relay=none, delay=172914, delays=172881/0.11/33/0, dsn=4.4.1, status=deferred (connect to alojat.com.ar[88.14.6.191]: Connection timed out)
Jun 1 00:11:41 server1 courierpop3login: Connection, ip=[::ffff:192.168.0.100]
Jun 1 00:12:05 server1 courierpop3login: Disconnected, ip=[::ffff:192.168.0.100]
Jun 1 00:12:06 server1 courierpop3login: Connection, ip=[::ffff:192.168.0.100]
Jun 1 00:12:06 server1 courierpop3login: LOGIN, user=web10_mauricio, ip=[::ffff:192.168.0.100]
Jun 1 00:12:06 server1 courierpop3login: LOGOUT, user=web10_mauricio, ip=[::ffff:192.168.0.100], top=0, retr=0, rcvd=24, sent=96, time=0
Jun 1 00:21:40 server1 courierpop3login: Connection, ip=[::ffff:192.168.0.100]
Jun 1 00:21:40 server1 courierpop3login: LOGIN, user=web10_mauricio, ip=[::ffff:192.168.0.100]
Jun 1 00:21:40 server1 courierpop3login: LOGOUT, user=web10_mauricio, ip=[::ffff:192.168.0.100], top=0, retr=0, rcvd=24, sent=96, time=0
Jun 1 00:30:15 server1 courierpop3login: Connection, ip=[::ffff:192.168.0.100]
Jun 1 00:30:15 server1 courierpop3login: LOGIN, user=web10_mauricio, ip=[::ffff:192.168.0.100]
Jun 1 00:30:15 server1 courierpop3login: LOGOUT, user=web10_mauricio, ip=[::ffff:192.168.0.100], top=0, retr=0, rcvd=24, sent=96, time=0
Jun 1 00:31:40 server1 courierpop3login: Connection, ip=[::ffff:192.168.0.100]
Jun 1 00:31:40 server1 courierpop3login: LOGIN, user=web10_mauricio, ip=[::ffff:192.168.0.100]
Jun 1 00:31:40 server1 courierpop3login: LOGOUT, user=web10_mauricio, ip=[::ffff:192.168.0.100], top=0, retr=0, rcvd=24, sent=96, time=0

edge 1st June 2007 00:42

It looks like your mailserver can not be accessed (time out)
Did you open port 25 on your router/firewall, and direct it to the server IP?

mfdp10 1st June 2007 00:50

Yes, the SMTP Server and POP3Server (port 25, 110) are open and direct 192.168.0.100

falko 1st June 2007 19:05

Is 88.14.6.191 your server's public IP address?
What's the output of
Code:

ifconfig
? What's in /etc/hosts and /etc/postfix/main.cf?

mfdp10 1st June 2007 23:16

Yes, 88.14.6.191 is my dynamic public ip

/etc/hosts:

127.0.0.1 localhost.localdomain localhost server1.alojat.com.ar
192.168.0.100 server1.alojat.com.ar server1

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

/etc/postfix/main.cf:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = server1.alojat.com.ar
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.alojat.com.ar, localhost.alojat.com.ar, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names


thanks

Hans 1st June 2007 23:28

Other suggestion
 
Hi,

If you're using the Maildir format, please check if this is enabled within ISPConfig under Management > Server > Settings > Email.

mfdp10 1st June 2007 23:37

Hello Hans, thank you for replay.
Yes this check box is checked

Hans 1st June 2007 23:46

What's the output of these 3 commands:

netstat -tap

hostname -f

hostname

Uno 1st June 2007 23:56

myhostname = server1.alojat.com.ar

would to be

myhostname = alojat.com.ar

to me works in this way

mfdp10 2nd June 2007 00:00

server1:/home/administrador# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdom:2208 *:* LISTEN 2 364/hpiod
tcp 0 0 localhost.localdo:52001 *:* LISTEN 2 367/python
tcp 0 0 *:mysql *:* LISTEN 2 452/mysqld
tcp 0 0 *:34863 *:* LISTEN 2 908/rpc.statd
tcp 0 0 *:sunrpc *:* LISTEN 2 067/portmap
tcp 0 0 *:81 *:* LISTEN 3 097/ispconfig_http
tcp 0 0 *:auth *:* LISTEN 2 746/inetd
tcp 0 0 server1.alojat.c:domain *:* LISTEN 2 8726/named
tcp 0 0 localhost.locald:domain *:* LISTEN 2 8726/named
tcp 0 0 *:ftp *:* LISTEN 3 376/proftpd: (acce
tcp 0 0 localhost.localdoma:ipp *:* LISTEN 2 647/cupsd
tcp 0 0 localhost.localdoma:953 *:* LISTEN 2 8726/named
tcp 0 0 *:smtp *:* LISTEN 3 313/master
tcp 0 0 server1.alojat.co:38010 ad.lhp.yieldmanager:www TIME_WAIT -
tcp 0 0 server1.alojat.co:38011 ad.lhp.yieldmanager:www TIME_WAIT -
tcp 0 0 server1.alojat.co:37841 bu-in-f93.google.co:www ESTABLISHED2 6284/firefox-bin
tcp 0 0 server1.alojat.co:57655 .:www ESTABLISHED2 6284/firefox-bin
tcp 0 0 server1.alojat.co:57654 .:www ESTABLISHED2 6284/firefox-bin
tcp 0 0 server1.alojat.co:45803 194.224.66.65:www ESTABLISHED26284/firefox-bin
tcp 0 0 localhost.localdo:54273 localhost.localdom:pop3 TIME_WAIT -
tcp6 0 0 *:imaps *:* LISTEN 2610/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 2629/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 2615/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 2598/couriertcpd
tcp6 0 0 *:www *:* LISTEN 3183/apache2
tcp6 0 0 *:ssh *:* LISTEN 2842/sshd
tcp6 0 0 ip6-localhost:953 *:* LISTEN 28726/named
tcp6 0 0 *:smtp *:* LISTEN 3313/master
tcp6 0 0 *:https *:* LISTEN 3183/apache2


server1:/home/administrador# hostname -f
localhost.localdomain


server1:/home/administrador# hostname
server1.alojat.com.ar


All times are GMT +2. The time now is 02:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.