Suddenly stopped recieving emails

Discussion in 'Server Operation' started by shajazzi, May 28, 2009.

  1. shajazzi

    shajazzi Member

    Suddenly It seems that I cannot receive emails.
    This is the response that I get when trying to send an email from Gmail

    This is an automatically generated Delivery Status Notification

    Delivery to the following recipient failed permanently:

    [email protected]

    Technical details of permanent failure:
    Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <[email protected]>: Relay access denied (state 14).

    and my mail logs:

    May 27 22:54:30 mybox1 postfix/smtpd[7219]: connect from mail-bw0-f222.google.com[209.85.218.222]
    May 27 22:54:30 mybox1 postfix/smtpd[7219]: NOQUEUE: reject: RCPT from mail-bw0-f222.google.com[209.85.218.222]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-bw0-f222.google.com>
    May 27 22:54:30 mybox1 postfix/smtpd[7219]: disconnect from mail-bw0-f222.google.com[209.85.218.222]

    shajazzi
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. shajazzi

    shajazzi Member

    No, I was trying to avoid be spammed. Below you can see the original message.
    ################################################
    This is an automatically generated Delivery Status Notification

    Delivery to the following recipient failed permanently:

    [email protected]

    Technical details of permanent failure:
    Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <[email protected]>: Relay access denied (state 14).

    ----- Original message -----

    MIME-Version: 1.0
    Received: by 10.204.56.4 with SMTP id w4mr441805bkg.25.1243461267700; Wed, 27
    May 2009 14:54:27 -0700 (PDT)
    Date: Wed, 27 May 2009 22:54:27 +0100
    Message-ID: <[email protected]>
    Subject: What Ever!!!!!!
    From: Stephen Huskinson <[email protected]>
    To: steve <[email protected]>
    Content-Type: multipart/alternative; boundary=00504502bad0273d88046aebe3e4

    --00504502bad0273d88046aebe3e4
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit

    What Ever!!!!!!

    --00504502bad0273d88046aebe3e4
    Content-Type: text/html; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit


    ----- Message truncated -----

    shajazzi
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. shajazzi

    shajazzi Member

    Yes. [email protected] is in my virtusertable file.

    this is my main.cf file
    # 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 = mybox1.webnet4u.co.uk
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = mybox1.webnet4u.co.uk, localhost.webnet4u.co.uk, , localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = 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
    smtpd_helo_required = yes
    disable_vrfy_command = yes
    strict_rfc821_envelopes = yes
    invalid_hostname_reject_code = 554
    multi_recipient_bounce_reject_code = 554
    non_fqdn_reject_code = 554
    relay_domains_reject_code = 554
    unknown_address_reject_code = 554
    unknown_client_reject_code = 554
    unknown_hostname_reject_code = 554
    unknown_local_recipient_reject_code = 554
    unknown_relay_recipient_reject_code = 554
    unknown_sender_reject_code = 554
    unknown_virtual_alias_reject_code = 554
    unknown_virtual_mailbox_reject_code = 554
    unverified_recipient_reject_code = 554
    unverified_sender_reject_code = 554

    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    tls_random_source = dev:/dev/urandom
    inet_protocols = all


    and Master.cf file

    #
    # Postfix master process configuration file. For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # ==========================================================================
    # service type private unpriv chroot wakeup maxproc command + args
    # (yes) (yes) (yes) (never) (100)
    # ==========================================================================
    smtp inet n - - - - smtpd
    #submission inet n - - - - smtpd
    # -o smtpd_enforce_tls=yes
    # -o smtpd_sasl_auth_enable=yes
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #smtps inet n - - - - smtpd
    # -o smtpd_tls_wrappermode=yes
    # -o smtpd_sasl_auth_enable=yes
    # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #628 inet n - - - - qmqpd
    pickup fifo n - - 60 1 pickup
    cleanup unix n - - - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - - 300 1 oqmgr
    tlsmgr unix - - - 1000? 1 tlsmgr
    rewrite unix - - - - - trivial-rewrite
    bounce unix - - - - 0 bounce
    defer unix - - - - 0 bounce
    trace unix - - - - 0 bounce
    verify unix - - - - 1 verify
    flush unix n - - 1000? 0 flush
    proxymap unix - - n - - proxymap
    smtp unix - - - - - smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay unix - - - - - smtp
    -o fallback_relay=
    # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - - - - showq
    error unix - - - - - error
    discard unix - - - - - discard
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - - - - lmtp
    anvil unix - - - - 1 anvil
    scache unix - - - - 1 scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent. See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp unix - n n - - pipe
    flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail unix - n n - - pipe
    flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp unix - n n - - pipe
    flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix - n n - 2 pipe
    flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman unix - n n - - pipe
    flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
    ${nexthop} ${user}




    shajazzi
     
    Last edited: May 30, 2009
  6. shajazzi

    shajazzi Member

    I tried add a new email address to see if something new would happen, but I am still getting the mail returned with errors

    mail log:
    May 31 08:08:59 mybox1 postfix/qmgr[3729]: A3F711288891: from=<[email protected]>, status=expired, returned to sender
    May 31 08:08:59 mybox1 postfix/cleanup[3905]: 92E3F1288A5A: message-id=<[email protected]>
    May 31 08:08:59 mybox1 postfix/bounce[3904]: A3F711288891: sender non-delivery notification: 92E3F1288A5A
    May 31 08:08:59 mybox1 postfix/qmgr[3729]: A3F711288891: removed
    May 31 08:08:59 mybox1 postfix/qmgr[3729]: 92E3F1288A5A: from=<>, size=2449, nrcpt=1 (queue active)
    May 31 08:09:02 mybox1 postfix/smtp[3731]: 92E3F1288A5A: to=<[email protected]>, relay=post.newnet.co.uk[212.87.80.29]:25, delay=3.4, delays=0.09/0/3.2/0.12, dsn=2.0.0, status=sent (250 ok 1243754277 qp 70343)
    May 31 08:09:02 mybox1 postfix/qmgr[3729]: 92E3F1288A5A: removed
    May 31 08:16:05 mybox1 postfix/pickup[3728]: 65F0D1288A5E: uid=0 from=<root>
    May 31 08:16:05 mybox1 postfix/cleanup[21826]: 65F0D1288A5E: message-id=<[email protected]>
    May 31 08:16:05 mybox1 postfix/qmgr[3729]: 65F0D1288A5E: from=<[email protected]>, size=1229, nrcpt=1 (queue active)
    May 31 08:16:05 mybox1 postfix/local[21836]: 65F0D1288A5E: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.63, delays=0.34/0.13/0/0.16, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
    May 31 08:16:05 mybox1 postfix/qmgr[3729]: 65F0D1288A5E: removed
    May 31 08:16:07 mybox1 postfix/pickup[3728]: B9B701288A5E: uid=0 from=<root>
    May 31 08:16:07 mybox1 postfix/cleanup[21826]: B9B701288A5E: message-id=<[email protected]>
    May 31 08:16:07 mybox1 postfix/qmgr[3729]: B9B701288A5E: from=<[email protected]>, size=458, nrcpt=1 (queue active)
    May 31 08:16:07 mybox1 postfix/local[21836]: B9B701288A5E: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
    May 31 08:16:07 mybox1 postfix/qmgr[3729]: B9B701288A5E: removed
    May 31 08:30:51 mybox1 postfix/master[3719]: terminating on signal 15
    May 31 08:30:51 mybox1 postfix/master[22724]: daemon started -- version 2.3.8, configuration /etc/postfix
    May 31 08:33:19 mybox1 postfix/smtpd[22917]: connect from mail-fx0-f168.google.com[209.85.220.168]
    May 31 08:33:21 mybox1 postfix/smtpd[22917]: NOQUEUE: reject: RCPT from mail-fx0-f168.google.com[209.85.220.168]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-fx0-f168.google.com>
    May 31 08:33:21 mybox1 postfix/smtpd[22917]: disconnect from mail-fx0-f168.google.com[209.85.220.168]
    May 31 08:33:39 mybox1 postfix/smtpd[22917]: connect from unknown[196.221.182.31]
    May 31 08:33:39 mybox1 postfix/smtpd[22917]: lost connection after CONNECT from unknown[196.221.182.31]
    May 31 08:33:39 mybox1 postfix/smtpd[22917]: disconnect from unknown[196.221.182.31]
    May 31 08:33:46 mybox1 postfix/smtpd[22917]: connect from unknown[196.221.182.31]
    May 31 08:33:47 mybox1 postfix/smtpd[22917]: lost connection after CONNECT from unknown[196.221.182.31]
    May 31 08:33:47 mybox1 postfix/smtpd[22917]: disconnect from unknown[196.221.182.31]
    May 31 08:33:50 mybox1 postfix/smtpd[22917]: connect from unknown[196.221.182.31]
    May 31 08:33:50 mybox1 postfix/smtpd[22917]: lost connection after CONNECT from unknown[196.221.182.31]
    May 31 08:33:50 mybox1 postfix/smtpd[22917]: disconnect from unknown[196.221.182.31]
    May 31 08:35:23 mybox1 postfix/smtpd[22917]: connect from adsl-75-56-57-96.dsl.emhril.sbcglobal.net[75.56.57.96]
    May 31 08:35:24 mybox1 postfix/smtpd[22917]: NOQUEUE: reject: RCPT from adsl-75-56-57-96.dsl.emhril.sbcglobal.net[75.56.57.96]: 554 5.7.1


    Returned mail:

    This is an automatically generated Delivery Status Notification

    Delivery to the following recipient failed permanently:

    [email protected]

    Technical details of permanent failure:
    Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <[email protected]>: Relay access denied (state 14).

    ----- Original message -----

    MIME-Version: 1.0
    Received: by 10.204.55.1 with SMTP id s1mr4321938bkg.132.1243755198317; Sun,
    31 May 2009 00:33:18 -0700 (PDT)
    Date: Sun, 31 May 2009 08:33:18 +0100
    Message-ID: <[email protected]>
    Subject: c
    From: xxxxxxxxx <[email protected]>
    To: [email protected]
    Content-Type: multipart/alternative; boundary=00163605988cc884ba046b3052c4

    --00163605988cc884ba046b3052c4
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit

    c

    --00163605988cc884ba046b3052c4
    Content-Type: text/html; charset=ISO-8859-1
    Content-Transfer-Encoding: 7bit


    ----- Message truncated -----

    Any Ideas anybody?

    shajazzi
     
  7. shajazzi

    shajazzi Member

    OK, I have fixed it. I added the following to my main.cf file

    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names

    shajazzi:):):):)
     

Share This Page