Results 1 to 10 of 10

Thread: Postfix: Connection refused. E-mail bounces back to sender.

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Beans
    11

    Postfix: Connection refused. E-mail bounces back to sender.

    I'm testing my mail server, and sending email works fine.

    However, when i tried to send emails to my server from gmail, i get this log:

    Code:
    Aug  8 14:18:17 anbient postfix/smtpd[14228]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual
    Aug  8 14:18:17 anbient postfix/smtpd[14228]: connect from mail-qy0-f169.google.com[209.85.216.169]
    Aug  8 14:18:17 anbient postfix/smtpd[14228]: F3D4B1DD02C0: client=mail-qy0-f169.google.com[209.85.216.169]
    Aug  8 14:18:18 anbient postfix/cleanup[9988]: F3D4B1DD02C0: message-id=<4C5EBC96.2030800@gmail.com>
    Aug  8 14:18:18 anbient postfix/qmgr[9993]: F3D4B1DD02C0: from=<felipefidelix@gmail.com>, size=1982, nrcpt=1 (queue active)
    Aug  8 14:18:18 anbient postfix/smtp[9995]: connect to net[174.132.240.146]:25: Connection refused
    Aug  8 14:18:18 anbient postfix/smtp[9995]: F3D4B1DD02C0: to=<fidelix@net>, orig_to=<eu@felipefidelix.com>, relay=none, delay=0.15, delays=0.09/0/0.05/0, dsn=4.4.1, status=deferred (connect to net[174.132.240.146]:25: Connection refused)

    And this is strange. 174.132.240.146 seems to be the web address 'net.net'.

    I am sure this has to be some setting in postfix, cuz its trying to deliver the email to 'fidelix@net', and that cant be right.

    I appreciate any help at all.

    Here is my postconf -n output:

    Code:
    root@anbient:/var/mail# postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    home_mailbox = Maildir/
    html_directory = /usr/share/doc/postfix/html
    mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m "${EXTENSION}"
    mailbox_size_limit = 0
    mydestination = localhost, 127.0.0.1
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    myorigin = $mydomain
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_path = private/dovecot-auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_type = dovecot
    smtpd_sender_restrictions = reject_unknown_sender_domain
    smtpd_tls_auth_only = yes
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
    smtpd_tls_mandatory_ciphers = medium
    smtpd_tls_mandatory_protocols = SSLv3, TLSv1
    smtpd_tls_received_header = yes
    smtpd_tls_security_level = may
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    virtual_alias_maps = hash:/etc/postfix/virtual
    virtual_mailbox_base = /var/mail/vhosts
    virtual_mailbox_domains = anbient.net, felipefidelix.com
    virtual_mailbox_maps = hash:/etc/postfix/vmailbox
    virtual_minimum_uid = 100
    virtual_uid_maps = static:5000
    Code:
    root@anbient:/var/mail# cat /etc/aliases
    # See man 5 aliases for format
    postmaster:    root
    Code:
    root@anbient:/var/mail# cat /etc/postfix/vmailbox
    eu@felipefidelix.com felipefidelix.com/eu
    @felipefidelix.com felipefidelix.com/eu
    Code:
    root@anbient:/var/mail# cat /etc/postfix/virtual
    # Anbient CATCH-ALL
    anbient.net     root
    # Postmaster
    postmaster@anbient.net  postmaster
    # Postmaster FF
    postmaster@felipefidelix.com    postmaster
    Code:
    root@anbient:/var/mail# cat /var/mail/vhosts 
    root@anbient:/var/mail#

  2. #2
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Postfix: Connection refused. E-mail bounces back to sender.

    Code:
    # Anbient CATCH-ALL
    anbient.net     root
    Should be

    Code:
    # Anbient CATCH-ALL
    @anbient.net     root
    「明後日の夕方には帰ってるからね。」


  3. #3
    Join Date
    Apr 2007
    Beans
    11

    Re: Postfix: Connection refused. E-mail bounces back to sender.

    Fixed that. But problem still remains.

    I restarted dovecot / postfix and retried:

    Code:
    Aug  8 16:45:30 anbient dovecot: dovecot: Killed with signal 15 (by pid=15558 uid=0 code=kill)
    Aug  8 16:45:31 anbient dovecot: Dovecot v1.2.9 starting up (core dumps disabled)
    Aug  8 16:46:12 anbient postfix/smtpd[21571]: connect from mail-qy0-f176.google.com[209.85.216.176]
    Aug  8 16:46:13 anbient postfix/smtpd[21571]: 2FEDE1DD0327: client=mail-qy0-f176.google.com[209.85.216.176]
    Aug  8 16:46:13 anbient postfix/cleanup[21619]: 2FEDE1DD0327: message-id=<4C5EDF3E.6050008@gmail.com>
    Aug  8 16:46:13 anbient postfix/qmgr[13962]: 2FEDE1DD0327: from=<felipefidelix@gmail.com>, size=1986, nrcpt=1 (queue active)
    Aug  8 16:46:13 anbient postfix/error[21620]: 2FEDE1DD0327: to=<fidelix@net>, orig_to=<eu@felipefidelix.com>, relay=none, delay=0.16, delays=0.15/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to net[174.132.240.146]:25: Connection refused)
    Email is still bouncing back.

  4. #4
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Postfix: Connection refused. E-mail bounces back to sender.

    Code:
    to=<fidelix@net>
    Why are you trying to send mail to fidelix@net? Actually, you say you try to "send mail to your server". What are you doing, exactly? You don't send mail to a machine, you send mail to a user.
    「明後日の夕方には帰ってるからね。」


  5. #5
    Join Date
    Apr 2007
    Beans
    11

    Re: Postfix: Connection refused. E-mail bounces back to sender.

    Thats right.

    I'm on my gmail account, and i'm trying to send an email to eu@felipefidelix.com, which is my e-mail on the postfix/dovecot.

    The email bounces back immediately after gmail sends it.

    It seems my postfix server is trying to deliver the e-mail at fidelix@net, for some reason. And thats what i want to fix, but dont know how.

  6. #6
    Join Date
    May 2010
    Beans
    27
    Distro
    Ubuntu 14.04 Trusty Tahr

    Thumbs down Re: Postfix: Connection refused. E-mail bounces back to sender.

    Code:
    warning: database /etc/postfix/virtual.db is older than source file
    you have to postmap, if you use hash files in your main.cf!

    Code:
    sudo postmap /etc/postfix/virtual
    and reload service

    also some logfiles would be nice

    regards
    Last edited by karesmakro; August 8th, 2010 at 07:36 PM. Reason: want to see some logfiles

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •