Can Send Email, But Not Recieve

Discussion in 'Installation/Configuration' started by mfdp10, Jun 1, 2007.

  1. mfdp10

    mfdp10 New Member

    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=<[email protected]>, size=532, nrcpt=1 (queue active)
    Jun 1 00:05:56 server1 postfix/qmgr[4143]: C22BF5D82F5: from=<[email protected]>, size=528, nrcpt=1 (queue active)
    Jun 1 00:05:56 server1 postfix/qmgr[4143]: D19AC5D82CB: from=<[email protected]>, 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=<[email protected]>, orig_to=<[email protected]>, 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=<[email protected]>, orig_to=<[email protected]>, 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=<[email protected]>, orig_to=<[email protected]>, 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=<[email protected]>, size=532, nrcpt=1 (queue active)
    Jun 1 00:10:57 server1 postfix/qmgr[4220]: C22BF5D82F5: from=<[email protected]>, size=528, nrcpt=1 (queue active)
    Jun 1 00:10:57 server1 postfix/qmgr[4220]: D19AC5D82CB: from=<[email protected]>, 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=<[email protected]>, orig_to=<[email protected]>, 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=<[email protected]>, orig_to=<[email protected]>, 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=<[email protected]>, orig_to=<[email protected]>, 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
     
  2. edge

    edge Active Member Moderator

    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?
     
  3. mfdp10

    mfdp10 New Member

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

    falko Super Moderator Howtoforge Staff

    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?
     
  5. mfdp10

    mfdp10 New Member

    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
     
  6. Hans

    Hans Moderator Moderator

    Other suggestion

    Hi,

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

    mfdp10 New Member

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

    Hans Moderator Moderator

    What's the output of these 3 commands:

    netstat -tap

    hostname -f

    hostname
     
  9. Uno

    Uno Member

    myhostname = server1.alojat.com.ar

    would to be

    myhostname = alojat.com.ar

    to me works in this way
     
  10. mfdp10

    mfdp10 New Member

    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
     
  11. mfdp10

    mfdp10 New Member

    from webmail ...
    try [email protected] to [email protected]
    and get
    It was not possible to send this e-mail

    SMTP Error: Recipient not accepted. Verify your relay rules

    « Back
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Is [email protected] listed in /etc/postfix/virtusertable? Is guardamar.com.ar listed in /etc/postfix/local-host-names?
     
  13. mfdp10

    mfdp10 New Member

    from [email protected] to [email protected], it work fine.... send, but pedro don't receive nothing

    /etc/postfix/virtusertable

    ###################################
    #
    # ISPConfig virtusertable Configuration File
    # Version 1.0
    #
    ###################################
    [email protected] web10_pedro
    [email protected] web10_pedro
    [email protected] web10_pedro
    [email protected] web10_pedro
    [email protected] web10_mauricio
    [email protected] web10_mauricio
    [email protected] web10_mauricio
    [email protected] web10_mauricio
    #### MAKE MANUAL ENTRIES BELOW THIS LINE!####



    /etc/postfix/local-host-names

    ###################################
    #
    # ISPConfig local-host-names Configuration File
    # Version 1.0
    #
    ###################################
    localhost
    server1.alojat.com.ar.localdomain
    localhost.server1.alojat.com.ar.localdomain
    localhost.alojat.com.ar.localdomain
    localhost.localdomain
    www.guardamar.com.ar
    guardamar.com.ar
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Which pop3 daemon do you use? If you use courier or dovecot, you will have to enable maildir in ISPConfig under management > server > settings.
     
  15. mfdp10

    mfdp10 New Member

    I believe use courier.... for the mail.log....
    and the check maildir is enabled.
    In the dns report the tab "mail" is red (fail)

    ERROR: I could not complete a connection to any of your mailservers!

    guardamar.com.ar: Timed out [Last data sent: [Did not connect]]

    If this is a timeout problem, note that the DNS report only waits about 40 seconds for responses, so your mail *may* work fine in this case but you will need to use testing tools specifically designed for such situations to be certain.

    [email protected]

    Hi. This is the qmail-send program at yahoo.com.
    I'm afraid I wasn't able to deliver your message to the following addresses.
    This is a permanent error; I've given up. Sorry it didn't work out.

    <[email protected]>:
    Sorry, I wasn't able to establish an SMTP connection. (#4.4.1)
    I'm not going to try again; this message has been in the queue too long.

    --- Below this line is a copy of the message.

    Return-Path: <[email protected]>
    Received: (qmail 84444 invoked from network); 3 Jun 2007 09:02:21 -0000
    DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
    s=s1024; d=yahoo.com.ar;
    h=Received:X-YMail-OSG:Subject:From:Reply-To:To:Content-Type:Organization:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding;
    b=2Dakc9eFaaFci466Nph0mb44KqgXkGdqnHPkXINpTJ7mn8HuN7vD42ElfJLE9Ts8N4qHH7olTB4U/1CIcd170JzwoH2qGs9aLWM3HjZUjkpdkNoK5HyT36qFZOuWNbg2rSHWepZYxoGpxo1xjKwhIj9mxuJvwbcbIPLYIWh+X7o= ;
    Received: from unknown (HELO server1.alojat.com.ar) ([email protected] with login)
    by smtp102.mail.mud.yahoo.com with SMTP; 3 Jun 2007 09:02:20 -0000
    X-YMail-OSG: NkxN_aEVM1mxO1scS6PXmIrWHBl32LpNMDrAQxHZMlurjXTqSarGX4Wop_5i44dP8SHRd8e3oA--
    Subject: hola
    From: Administrador <[email protected]>
    Reply-To: [email protected]
    To: [email protected]
    Content-Type: text/plain
    Organization: AlojaT
    Date: Sun, 03 Jun 2007 11:02:58 +0200
    Message-Id: <[email protected]>
    Mime-Version: 1.0
    X-Mailer: Evolution 2.6.3
    Content-Transfer-Encoding: 7bit

    hola
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Is your server behind a router or firewall? Then check if you forwarded the smtp port to your server correctly and opened the firewall. If you host the server behind a DSL line, please ask your provider if they block any ports.
     

Share This Page