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=27)
-   -   Problem with fetchmail/getmail (http://www.howtoforge.com/forums/showthread.php?t=55919)

brianetilley 25th January 2012 17:55

Problem with fetchmail/getmail
 
ISPConfig 3.0.4.2
Debian 6.0 Squeeze

After much searching I have not found a solution as to why I can not receive email from the ISPConfig server. Thunderbird can access the email accounts I set up but fetchmail does not get mail from domain registrar server nor can I send email from Thunderbird. I think it is a DNS issue, but the more I read the more confusing it gets. Here are the outputs for mail.log...netstat -tap...tail -n100 /var/log/messages and iptables -L

Quote:

root@web:~# tail /var/log/mail.log
Jan 25 06:35:01 web dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Jan 25 06:35:01 web postfix/smtpd[5715]: connect from localhost.localdomain[127.0.0.1]
Jan 25 06:35:01 web postfix/smtpd[5715]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Jan 25 06:35:01 web postfix/smtpd[5715]: disconnect from localhost.localdomain[127.0.0.1]
Jan 25 06:36:24 web dovecot: pop3-login: Login: user=<brian@sweatforhealth.com>, method=PLAIN, rip=70.79.230.136, lip=184.70.9.146, TLS
Jan 25 06:36:24 web dovecot: POP3(brian@sweatforhealth.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 25 06:36:54 web dovecot: pop3-login: Login: user=<admin@earthstationproductions.com>, method=PLAIN, rip=70.79.230.136, lip=184.70.9.146, TLS
Jan 25 06:36:54 web dovecot: POP3(admin@earthstationproductions.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Jan 25 06:39:32 web dovecot: pop3-login: Login: user=<brian@earthstationproductions.com>, method=PLAIN, rip=70.79.230.136, lip=184.70.9.146, TLS
Jan 25 06:39:32 web dovecot: POP3(brian@earthstationproductions.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
root@web:~#
Quote:

root@web:~# 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.localdo:10024 *:* LISTEN 1677/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 1966/master
tcp 0 0 *:mysql *:* LISTEN 1462/mysqld
tcp 0 0 *:pop3 *:* LISTEN 1979/dovecot
tcp 0 0 *:imap2 *:* LISTEN 1979/dovecot
tcp 0 0 *:sunrpc *:* LISTEN 793/portmap
tcp 0 0 *:ftp *:* LISTEN 1903/pure-ftpd (SER
tcp 0 0 web.espserver.co:domain *:* LISTEN 1324/named
tcp 0 0 localhost.locald:domain *:* LISTEN 1324/named
tcp 0 0 *:ssh *:* LISTEN 23706/sshd
tcp 0 0 *:smtp *:* LISTEN 1966/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 1324/named
tcp 0 0 *:42142 *:* LISTEN 805/rpc.statd
tcp 0 0 *:imaps *:* LISTEN 1979/dovecot
tcp 0 0 *:pop3s *:* LISTEN 1979/dovecot
tcp 0 0 localhost.localdo:mysql localhost.localdo:45685 ESTABLISHED 1462/mysqld
tcp 0 52 web.espserver.com:ssh S0106602ad08fbdf1.:1745 ESTABLISHED 6714/2
tcp 0 0 localhost.localdo:45685 localhost.localdo:mysql ESTABLISHED 1678/amavisd (ch5-a
tcp 0 0 web.espserver.com:ssh S0106602ad08fbdf1.:1066 ESTABLISHED 6323/1
tcp 0 0 web.espserver.com:ssh S0106602ad08fbdf1.:4400 ESTABLISHED 5929/0
tcp6 0 0 [::]:http-alt [::]:* LISTEN 5596/apache2
tcp6 0 0 [::]:www [::]:* LISTEN 5596/apache2
tcp6 0 0 [::]:tproxy [::]:* LISTEN 5596/apache2
tcp6 0 0 [::]:ftp [::]:* LISTEN 1903/pure-ftpd (SER
tcp6 0 0 [::]:domain [::]:* LISTEN 1324/named
tcp6 0 0 [::]:ssh [::]:* LISTEN 23706/sshd
tcp6 0 0 ip6-localhost:953 [::]:* LISTEN 1324/named
tcp6 0 0 [::]:https [::]:* LISTEN 5596/apache2
root@web:~#
Quote:

root@web:~# tail -n100 /var/log/messages
Jan 25 04:05:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:05:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:10:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:10:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:15:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:15:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:20:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:20:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:25:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:25:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:30:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:30:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:35:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:35:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:40:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:40:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:45:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:45:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:50:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:50:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 04:55:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 04:55:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:00:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:00:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:05:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:05:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:10:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:10:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:15:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:15:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:20:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:20:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:25:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:25:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:30:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:30:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:35:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:35:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:40:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:40:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:45:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:45:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:50:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:50:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 05:55:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 05:55:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:00:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:00:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:05:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:05:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:10:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:10:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:15:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:15:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:17:01 web kernel: [243737.886109] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:17:01 web kernel: [243737.889148] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:17:01 web kernel: [243737.889367] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:17:20 web kernel: [243756.617123] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:17:20 web kernel: [243756.620149] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:17:20 web kernel: [243756.620378] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:17:22 web kernel: [243758.517115] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:17:22 web kernel: [243758.520150] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:17:22 web kernel: [243758.520391] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:17:24 web kernel: [243760.702107] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:17:24 web kernel: [243760.705148] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:17:24 web kernel: [243760.705389] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:17:26 web kernel: [243762.598103] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:17:26 web kernel: [243762.601149] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:17:26 web kernel: [243762.601391] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:17:28 web kernel: [243764.482109] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:17:28 web kernel: [243764.485148] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:17:28 web kernel: [243764.485365] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:18:01 web kernel: [243797.542308] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 25 06:18:01 web kernel: [243797.545151] e100: eth0 NIC Link is Up 100 Mbps Full Duplex
Jan 25 06:18:01 web kernel: [243797.545579] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jan 25 06:19:01 web kernel: [243857.404978] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Jan 25 06:19:01 web kernel: [243857.405494] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Jan 25 06:19:01 web kernel: [243857.405500] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Jan 25 06:19:01 web kernel: [243857.405505] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Jan 25 06:20:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:20:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:25:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:25:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:25:03 web rsyslogd: [origin software="rsyslogd" swVersion="4.6.4" x-pid="959" x-info="http://www.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
Jan 25 06:30:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:30:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:35:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:35:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:40:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:40:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:45:02 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:45:02 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:50:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:50:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 06:55:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 06:55:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 07:00:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 07:00:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
Jan 25 07:05:01 web pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
Jan 25 07:05:01 web pure-ftpd: (?@127.0.0.1) [INFO] Logout.
root@web:~#
Quote:

root@web:~# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
DROP tcp -- anywhere loopback/8
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
DROP all -- base-address.mcast.net/4 anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
DROP all -- anywhere anywhere

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere

Chain INT_IN (0 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
DROP all -- anywhere anywhere

Chain INT_OUT (0 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain PAROLE (15 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain PUB_IN (5 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp echo-request
PAROLE tcp -- anywhere anywhere tcp dpt:ftp-data
PAROLE tcp -- anywhere anywhere tcp dpt:ftp
PAROLE tcp -- anywhere anywhere tcp dpt:ssh
PAROLE tcp -- anywhere anywhere tcp dpt:smtp
PAROLE tcp -- anywhere anywhere tcp dpt:domain
PAROLE tcp -- anywhere anywhere tcp dpt:www
PAROLE tcp -- anywhere anywhere tcp dpt:pop3
PAROLE tcp -- anywhere anywhere tcp dpt:imap2
PAROLE tcp -- anywhere anywhere tcp dpt:https
PAROLE tcp -- anywhere anywhere tcp dpt:imaps
PAROLE tcp -- anywhere anywhere tcp dpt:pop3s
PAROLE tcp -- anywhere anywhere tcp dpt:mysql
PAROLE tcp -- anywhere anywhere tcp dpt:http-alt
PAROLE tcp -- anywhere anywhere tcp dpt:tproxy
PAROLE tcp -- anywhere anywhere tcp dpt:webmin
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:mysql
DROP icmp -- anywhere anywhere
DROP all -- anywhere anywhere

Chain PUB_OUT (5 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain fail2ban-dovecot-pop3imap (0 references)
target prot opt source destination
RETURN all -- anywhere anywhere

Chain fail2ban-pureftpd (0 references)
target prot opt source destination
RETURN all -- anywhere anywhere

Chain fail2ban-ssh (0 references)
target prot opt source destination
RETURN all -- anywhere anywhere
root@web:~#
Thanks in advance for any suggestions or links to the info I need. As my email is not working I will check this thread directly for any reply.

falko 26th January 2012 15:37

Are there any errors in your mail log (in the /var/log/ directory)?

Is the server hosted in a date center, or do you use a dynamic IP for it?

brianetilley 26th January 2012 17:57

Here is the mail log:

Quote:

root@web:~# tail /var/log/mail.log
Jan 26 07:42:05 web postfix/smtpd[30967]: 30B7E7AA1D4: client=localhost.localdomain[127.0.0.1]
Jan 26 07:42:05 web postfix/cleanup[30963]: 30B7E7AA1D4: message-id=<0.0.1B.807.1CCDC19D7456406.0@e3uspmta150.emars ys.net>
Jan 26 07:42:05 web postfix/qmgr[23725]: 30B7E7AA1D4: from=<e3us-1638837472462-28f1II3182b8@us.emarsys.net>, size=36880, nrcpt=1 (queue active)
Jan 26 07:42:05 web postfix/smtpd[30967]: disconnect from localhost.localdomain[127.0.0.1]
Jan 26 07:42:05 web amavis[1678]: (01678-18) Passed CLEAN, [91.194.248.150] [91.194.248.150] <e3us-1638837472462-28f1II3182b8@us.emarsys.net> -> <brian@earthstationproductions.com>, Message-ID: <0.0.1B.807.1CCDC19D7456406.0@e3uspmta150.emarsys. net>, mail_id: 7OdDtK6sQGqC, Hits: -11.523, size: 36387, queued_as: 30B7E7AA1D4, 2728 ms
Jan 26 07:42:05 web postfix/smtp[30980]: 9DBBF7AA028: to=<brian@earthstationproductions.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.6, delays=0.85/0/0/2.7, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01678-18, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 30B7E7AA1D4)
Jan 26 07:42:05 web postfix/qmgr[23725]: 9DBBF7AA028: removed
Jan 26 07:42:05 web dovecot: deliver(brian@earthstationproductions.com): sieve: msgid=<0.0.1B.807.1CCDC19D7456406.0@e3uspmta150.em arsys.net>: stored mail into mailbox 'INBOX'
Jan 26 07:42:05 web postfix/pipe[30968]: 30B7E7AA1D4: to=<brian@earthstationproductions.com>, relay=dovecot, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Jan 26 07:42:05 web postfix/qmgr[23725]: 30B7E7AA1D4: removed
root@web:~#
The server is mine with a static IP. I am now receiving email from my server but can not send...SMTP error

Quote:

Sending of message failed.
An error occurred sending mail: SMTP server mail.earthstationproductions.com is unknown. The server may be incorrectly configured. Please verify that your SMTP server settings are correct and try again.
I have the ISPConfig manual 3 but have not been able to correctly understand the mail and DNS settings.

falko 27th January 2012 13:15

Did you create an A record for mail.earthstationproductions.com?


All times are GMT +2. The time now is 18:52.

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