Cannot send or receive mail after setup

Discussion in 'HOWTO-Related Questions' started by 50CentOS, Jun 9, 2010.

  1. 50CentOS

    50CentOS New Member

    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.

    ]

    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.
    it seems to have removed the .org.

    Is it possible to setup this type of config with a subdomain?
     
    Last edited: Jun 10, 2010
  2. falko

    falko Super Moderator

  3. 50CentOS

    50CentOS New Member

    :(
    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
     
  4. falko

    falko Super Moderator

    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.
     

Share This Page