PDA

View Full Version : Mail problem


grofar
14th August 2009, 09:05
my server work fine my last problem is mail :(

i use ispconfig 2 fedora 11 instaled from tutorial perfect server with fedora 11.

now can someone help me to set mail imap pop3 etc to work send and recived mail for user , maildir it's created but is not work !!!

i have ip dynamic 89.44.***.185 im not using LAN .

in /etc/postfix/main.cf it's this setings:

inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
mynetworks = 127.0.0.0/8 [::1]/128
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
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
myhostname = server1.server.com

virtual_maps = hash:/etc/postfix/virtusertable

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


pls help me to work mail !!! it's my last problem :)

falko
15th August 2009, 13:53
What exactly isn't working? Are there any errors in your mail log?

grofar
18th August 2009, 11:25
falko pls help ! now pop3 service it's offline , in maillog is this error :

Aug 18 11:15:43 server1 postfix/smtpd[16334]: connect from localhost[::1]
Aug 18 11:15:43 server1 postfix/smtpd[16334]: lost connection after CONNECT from localhost[::1]
Aug 18 11:15:43 server1 postfix/smtpd[16334]: disconnect from localhost[::1]
Aug 18 11:17:24 server1 postfix/smtpd[16407]: connect from localhost[::1]
Aug 18 11:17:24 server1 postfix/smtpd[16407]: lost connection after CONNECT from localhost[::1]
Aug 18 11:17:24 server1 postfix/smtpd[16407]: disconnect from localhost[::1]
Aug 18 11:17:35 server1 postfix/smtpd[16407]: connect from localhost[::1]
Aug 18 11:17:35 server1 postfix/smtpd[16407]: lost connection after CONNECT from localhost[::1]
Aug 18 11:17:35 server1 postfix/smtpd[16407]: disconnect from localhost[::1]
Aug 18 11:17:46 server1 postfix/smtpd[16407]: connect from localhost[::1]
Aug 18 11:17:46 server1 postfix/smtpd[16407]: lost connection after CONNECT from localhost[::1]
Aug 18 11:17:46 server1 postfix/smtpd[16407]: disconnect from localhost[::1]
Aug 18 11:18:53 server1 postfix/postfix-script[16477]: stopping the Postfix mail system
Aug 18 11:18:53 server1 postfix/master[3668]: terminating on signal 15
Aug 18 11:18:53 server1 postfix/postfix-script[16529]: starting the Postfix mail system
Aug 18 11:18:53 server1 postfix/master[16530]: daemon started -- version 2.5.6, configuration /etc/postfix
Aug 18 11:18:53 server1 postfix/qmgr[16533]: 4679F1FD69: from=<root@server1.betiemulta.com>, size=769, nrcpt=1 (queue active)
Aug 18 11:19:00 server1 postfix/smtpd[16542]: connect from localhost[::1]
Aug 18 11:19:00 server1 postfix/smtpd[16542]: lost connection after CONNECT from localhost[::1]
Aug 18 11:19:00 server1 postfix/smtpd[16542]: disconnect from localhost[::1]
Aug 18 11:19:03 server1 postfix/smtpd[16542]: connect from localhost[::1]
Aug 18 11:19:03 server1 postfix/smtpd[16542]: lost connection after CONNECT from localhost[::1]
Aug 18 11:19:03 server1 postfix/smtpd[16542]: disconnect from localhost[::1]
Aug 18 11:19:23 server1 postfix/smtp[16535]: connect to server.com[188.40.37.7]:25: Connection timed out
Aug 18 11:19:23 server1 postfix/smtp[16535]: 4679F1FD69: to=<admin@server.com>, relay=none, delay=29963, delays=29933/0.03/30/0, dsn=4.4.1, status=deferred (connect to server.com[188.40.37.7]:25: Connection timed out)

falko
19th August 2009, 14:33
What's the output of netstat -tap?
Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx

grofar
19th August 2009, 23:03
ok netstat -tap :

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:40809 *:* LISTEN -
tcp 0 0 *:mysql *:* LISTEN 1573/mysqld
tcp 0 0 *:rquotad *:* LISTEN 1428/rpc.rquotad
tcp 0 0 *:pop3 *:* LISTEN 1603/dovecot
tcp 0 0 *:imap *:* LISTEN 1603/dovecot
tcp 0 0 *:sunrpc *:* LISTEN 1073/rpcbind
tcp 0 0 *:81 *:* LISTEN 2086/ispconfig_http
tcp 0 0 *:39220 *:* LISTEN 1333/rpc.statd
tcp 0 0 localhost:domain *:* LISTEN 12440/named
tcp 0 0 *:ssh *:* LISTEN 1383/sshd
tcp 0 0 localhost:ipp *:* LISTEN 1111/cupsd
tcp 0 0 localhost:rndc *:* LISTEN 12440/named
tcp 0 0 *:smtp *:* LISTEN 2198/master
tcp 0 0 *:52700 *:* LISTEN 1443/rpc.mountd
tcp 0 0 *:imaps *:* LISTEN 1603/dovecot
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *:pop3s *:* LISTEN 1603/dovecot
tcp 0 0 server1.server.com:ssh phx-ntwrk.brynet.ro:4398 ESTABLISHED 20293/2
tcp 0 0 *:pop3 *:* LISTEN 1603/dovecot
tcp 0 0 *:imap *:* LISTEN 1603/dovecot
tcp 0 0 *:sunrpc *:* LISTEN 1073/rpcbind
tcp 0 0 *:http *:* LISTEN 2120/httpd
tcp 0 0 localhost:domain *:* LISTEN 12440/named
tcp 0 0 *:ftp *:* LISTEN 2256/proftpd: (acce
tcp 0 0 *:ssh *:* LISTEN 1383/sshd
tcp 0 0 localhost:ipp *:* LISTEN 1111/cupsd
tcp 0 0 localhost:rndc *:* LISTEN 12440/named
tcp 0 0 *:smtp *:* LISTEN 2198/master
tcp 0 0 *:https *:* LISTEN 2120/httpd
tcp 0 0 *:imaps *:* LISTEN 1603/dovecot
tcp 0 0 *:pop3s *:* LISTEN 1603/dovecot
tcp 0 0 server1.server.com:http webtools.ampere.inpg.:cvmon TIME_WAIT -
tcp 0 0 server1.server.com:http shabnet0-104.shabakah:65453 TIME_WAIT -


and blacklisted says:

Checking myip against 111 known blacklists...
Listed: 1 time(s)
Timeouts:3

Listed: SORBS-SPAM LISTED Escalated Listing (Spam or Spam Support) See: Detail
Return codes were: 127.0.0.6 3600 4344

Timeout: CSMA TIMEOUT Return codes were: ERROR, Reponse code=2 0 0
SOLID TIMEOUT Return codes were: ERROR, Reponse code=2 0 0

grofar
1st September 2009, 19:16
Help ???? someone !!!

Craig
2nd September 2009, 05:50
What are you using for a mail client?

How exactly are you testing it, e.g. sending mail from a mail account at GMail/ISP mail/directly from mail client etc.?

Also, it might be a good idea to try to watch the mail error log while you try to send mail to it. For example, if you execute the command tail -f /var/log/maillog you should see its exact response to your attempts to send mail to it and/or access an account to check for new mail.

As for being on the SORBS blocklist, which blocklist are you on and do you know why or how you got on it?

It is often the case that servers on dynamic IPs get blacklisted for the simple reason that most spam comes from infected personal computers on dynamic IPs. If that is the reason your server is listed, there is little chance of getting de-listed, unfortunately.

Also, have you looked into using Gmail or other similar services as a mail relay?