HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Cannot send or receive mail after setup (http://www.howtoforge.com/forums/showthread.php?t=46462)

50CentOS 9th June 2010 18:30

Cannot send or receive mail after setup
 
Hi
I have installed iREDmail using this guide
Set Up A Full-Featured Mail Server With iRedOS: MySQL, Postfix, Dovecot, ClamAV, SpamAssassin, Amavisd, RoundCube/SquirrelMail

I dont seem to have any issues except with the sending or receipt of mails?

I am testing this on VMware and have installed the system with a no-ip subdomain.

mysite.zapto.org
the hostname of the mail server is mail.mysite.zapto.org

I have added the A host record to no-ip and under it the MX record for mail.mysite.zapto.org

I have the VM in DMZ so i can access the apache start page as well as the control panel for postfix etc.
When i try to send/receive mail the connection seems to be getting timed out.

Quote:

Jun 8 22:52:09 mail roundcube: [08-Jun-2010 22:52:09 -0700]: Successful login for user01@mysite.zapto.org (id 1) from
Jun 8 22:52:28 mail postfix/smtpd[2878]: connect from mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:52:28 mail postfix/smtpd[2878]: DCB5A335CDE: client=mail.mysite.zapto.org[127.0.0.1], sasl_method=LOGIN, sasl_username=user01@mysite.zapto.org
Jun 8 22:52:28 mail postfix/cleanup[2886]: DCB5A335CDE: message-id=<7e14daf39c1206e176e0ea56b08cd2a3@127.0.0.1>
Jun 8 22:52:28 mail postfix/qmgr[2645]: DCB5A335CDE: from=<user01@mysite.zapto.org>, size=567, nrcpt=1 (queue active)
Jun 8 22:52:28 mail roundcube: [08-Jun-2010 22:52:28 -0700]: User user01@mysite.zapto.org []; Message for <me@gmail.com>; 250: 2.0.0 Ok: queued as DCB5A335CDE
Jun 8 22:52:28 mail postfix/smtpd[2878]: disconnect from mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:52:29 mail postfix/smtpd[2892]: connect from mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:52:29 mail postfix/smtpd[2892]: 6D7F1335CE1: client=mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:52:29 mail postfix/cleanup[2886]: 6D7F1335CE1: message-id=<7e14daf39c1206e176e0ea56b08cd2a3@127.0.0.1>
Jun 8 22:52:29 mail postfix/qmgr[2645]: 6D7F1335CE1: from=<user01@mysite.zapto.org>, size=1502, nrcpt=1 (queue active)
Jun 8 22:52:29 mail amavis[2585]: (02585-01) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <user01@mysite.zapto.org> -> <me@gmail.com>, Message-ID: <7e14daf39c1206e176e0ea56b08cd2a3@127.0.0.1>, mail_id: 82h3unpgXfY0, Hits: 1.41, size: 567, queued_as: 6D7F1335CE1, 537 ms
Jun 8 22:52:29 mail postfix/smtp[2887]: DCB5A335CDE: to=<me@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.74, delays=0.14/0.06/0.02/0.53, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02585-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6D7F1335CE1)
Jun 8 22:52:29 mail postfix/qmgr[2645]: DCB5A335CDE: removed
Jun 8 22:52:59 mail postfix/smtp[2897]: connect to gmail-smtp-in.l.google.com[74.125.95.27]:25: Connection timed out
Jun 8 22:53:29 mail postfix/smtp[2897]: connect to alt1.gmail-smtp-in.l.google.com[209.85.211.101]:25: Connection timed out
Jun 8 22:53:59 mail postfix/smtp[2897]: connect to alt2.gmail-smtp-in.l.google.com[209.85.229.27]:25: Connection timed out
Jun 8 22:54:29 mail postfix/smtp[2897]: connect to alt3.gmail-smtp-in.l.google.com[209.85.219.18]:25: Connection timed out
Jun 8 22:54:59 mail postfix/smtp[2897]: connect to alt4.gmail-smtp-in.l.google.com[209.85.129.27]:25: Connection timed out
Jun 8 22:54:59 mail postfix/smtp[2897]: 6D7F1335CE1: to=<me@gmail.com>, relay=none, delay=150, delays=0.05/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.129.27]:25: Connection timed out)
Jun 8 22:57:10 mail postfix/smtpd[2922]: connect from mail.zapto.org[127.0.0.1]
Jun 8 22:57:10 mail postfix/smtpd[2922]: 2F638335CDE: client=mail.mysite.zapto.org[127.0.0.1], sasl_method=LOGIN, sasl_username=user01@mysite.zapto.org
Jun 8 22:57:10 mail postfix/cleanup[2924]: 2F638335CDE: message-id=<d2c2e5692f4b3b0032e47f70af659b37@127.0.0.1>
Jun 8 22:57:10 mail roundcube: [08-Jun-2010 22:57:10 -0700]: User user01@mysite.zapto.org []; Message for <me@hush.com>; 250: 2.0.0 Ok: queued as 2F638335CDE
Jun 8 22:57:10 mail postfix/qmgr[2645]: 2F638335CDE: from=<user01@mysite.zapto.org>, size=552, nrcpt=1 (queue active)
Jun 8 22:57:10 mail postfix/smtpd[2922]: disconnect from mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:57:10 mail postfix/smtpd[2931]: connect from mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:57:10 mail postfix/smtpd[2931]: AAAC0335CE4: client=mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:57:10 mail postfix/cleanup[2924]: AAAC0335CE4: message-id=<d2c2e5692f4b3b0032e47f70af659b37@127.0.0.1>
Jun 8 22:57:10 mail postfix/qmgr[2645]: AAAC0335CE4: from=<user01@mysite.zapto.org>, size=1481, nrcpt=1 (queue active)
Jun 8 22:57:10 mail amavis[2586]: (02586-01) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <user01@mysite.zapto.org> -> <me@hush.com>, Message-ID: <d2c2e5692f4b3b0032e47f70af659b37@127.0.0.1>, mail_id: kBtl34w-SJdm, Hits: -1.387, size: 552, queued_as: AAAC0335CE4, 505 ms
Jun 8 22:57:10 mail postfix/smtp[2925]: 2F638335CDE: to=<me@hush.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.58, delays=0.04/0.02/0.02/0.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=02586-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as AAAC0335CE4)
Jun 8 22:57:10 mail postfix/qmgr[2645]: 2F638335CDE: removed
Jun 8 22:57:29 mail postfix/smtpd[2892]: timeout after END-OF-MESSAGE from mail.mysite.zapto.org[127.0.0.1]
Jun 8 22:57:29 mail postfix/smtpd[2892]: disconnect from mail.mysite.zapto.org[127.0.0.1
]

Here is my dig records:
Code:

[root@mail log]# dig mx mysite.zapto.org

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> mx mysite.zapto.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2107
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 3

;; QUESTION SECTION:
;mysite.zapto.org.              IN      MX

;; ANSWER SECTION:
mysite.zapto.org.      60      IN      MX      5 mail.mysite.zapto.org.

;; AUTHORITY SECTION:
zapto.org.              60      IN      NS      nf4.no-ip.com.
zapto.org.              60      IN      NS      nf1.no-ip.com.
zapto.org.              60      IN      NS      nf3.no-ip.com.
zapto.org.              60      IN      NS      nf2.no-ip.com.

;; ADDITIONAL SECTION:
nf1.no-ip.com.          74442  IN      A      204.16.252.8
nf2.no-ip.com.          557    IN      A      69.72.255.8
nf3.no-ip.com.          74442  IN      A      69.65.40.108

;; Query time: 116 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Wed Jun  9 09:23:26 2010
;; MSG SIZE  rcvd: 184

What could the problem be?
here is my postconf -n output:
Code:

[root@mail log]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
header_checks = pcre:/etc/postfix/header_checks.pcre
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_name = iRedMail
mail_owner = postfix
mail_version = 0.5.0
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_size_limit = 15728640
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = mysite.zapto
myhostname = mail.mysite.zapto.org
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = mail.mysite.zapto.org
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES
receive_override_options = no_address_mappings
recipient_bcc_maps = mysql:/etc/postfix/mysql_recipient_bcc_maps_domain.cf, mysql:/etc/postfix/mysql_recipient_bcc_maps_user.cf
relay_domains = , mysql:/etc/postfix/mysql_relay_domains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
sample_directory = /usr/share/doc/postfix-2.5.6/samples
sender_bcc_maps = mysql:/etc/postfix/mysql_sender_bcc_maps_domain.cf, mysql:/etc/postfix/mysql_sender_bcc_maps_user.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:127.0.0.1:10031
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = mysql:/etc/postfix/mysql_sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = mysql:/etc/postfix/mysql_transport_maps_user.cf, mysql:/etc/postfix/mysql_transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail/vmail01
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = dovecot
virtual_uid_maps = static:500

if anyone can shed some light on what might be causing this i would be very greatful.
thanks

*I just noticed that the domain portion is being truncated possibly because it is expecting a tld.xyz and not a subdomain.
Quote:

mydomain = mysite.zapto
it seems to have removed the .org.

Is it possible to setup this type of config with a subdomain?

falko 10th June 2010 15:00

Please check if your server is blaclisted: http://mxtoolbox.com/blacklists.aspx

50CentOS 10th June 2010 18:35

:(
You were right it seems the no-ip domain is blacklisted 4 times

Code:

Listed 4 times with 4 timeouts.
Blacklist        Status        Reason        TTL        ResponseTime
FIVETEN        LISTED        miscellaneous address blocks that have sent spam here
Return codes were: 127.0.0.2        864000        530
SORBS-DUHL        LISTED        Dynamic IP Addresses See: Detail
Return codes were: 127.0.0.10        3600        530
Spamhaus-ZEN        LISTED        Detail
Return codes were: 127.0.0.11        900        702
Tiopan        LISTED        Return codes were: 127.0.0.2        2100        702

Well if its just the domain causing the problem i was only trying to test so maybe i will have better results with a tld.xyz

thanks for the insight falko

falko 11th June 2010 15:10

If you have a dynamic IP, then there's no way to get de-listed from the blacklists. Almost all dynamic IPs are blacklisted nowadays.


All times are GMT +2. The time now is 09:57.

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