Query on email system

Discussion in 'General' started by mphayesuk, Jun 25, 2006.

  1. mphayesuk

    mphayesuk New Member

    The problem is that a remote email server is rejecting some mail. If I log into webmail and send an email its fine, but when I use the system to send mail or send mail as a result of a cgi program the mail wont go through.

    Root gets an email regarding these failed attempts at send mail here is one of the emails:

    Message 10:
    From MAILER-DAEMON Sun Jun 25 14:46:59 2006
    X-Original-To: wwwrun@server1.touchonehosting.co.uk
    Delivered-To: root@server1.touchonehosting.co.uk
    Date: Sun, 25 Jun 2006 14:46:59 +0100 (BST)
    From: MAILER-DAEMON@server1.touchonehosting.co.uk (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: wwwrun@server1.touchonehosting.co.uk
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
    boundary="8063A340270.1151243219/server1.touchonehosting.co.uk"


    Part 1:
    Content-Description: Notification
    Content-Type: text/plain

    This is the Postfix program at host server1.touchonehosting.co.uk.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The Postfix program

    <mhayes1@touchone.co.uk>: host mx.core.plus.net[212.159.11.36] said:
    550-Verification failed for <wwwrun@server1.touchonehosting.co.uk>
    550-REJECTED: Cannot route message 550 Sender verify failed (in reply to
    RCPT TO command)

    <mhayes@touchone.co.uk>: host mx.core.plus.net[212.159.11.36] said: 550 Sender
    verify failed (in reply to RCPT TO command)

    Part 2:
    Content-Description: Delivery report
    Content-Type: message/delivery-status

    Reporting-MTA: dns; server1.touchonehosting.co.uk
    X-Postfix-Queue-ID: 8063A340270
    X-Postfix-Sender: rfc822; wwwrun@server1.touchonehosting.co.uk
    Arrival-Date: Sun, 25 Jun 2006 14:46:43 +0100 (BST)
    Final-Recipient: rfc822; mhayes1@touchone.co.uk
    Action: failed
    Status: 5.0.0
    Diagnostic-Code: X-Postfix; host mx.core.plus.net[212.159.11.36] said:
    550-Verification failed for <wwwrun@server1.touchonehosting.co.uk>
    550-REJECTED: Cannot route message 550 Sender verify failed (in reply to
    RCPT TO command)

    Final-Recipient: rfc822; mhayes@touchone.co.uk
    Action: failed
    Status: 5.0.0
    Diagnostic-Code: X-Postfix; host mx.core.plus.net[212.159.11.36] said: 550
    Sender verify failed (in reply to RCPT TO command)

    Part 3:
    Content-Description: Undelivered Message
    Content-Type: message/rfc822

    To: mhayes@touchone.co.uk
    Cc: mhayes1@touchone.co.uk
    From: mhayes@touchone.co.uk
    Subject: Novice Form SubmissionTesting

    **** this was the data from a cgi script but I still get the same error if I send an email using the mail command.

    Have I set something up wrong somewhere.

    Thanks
     
  2. mphayesuk

    mphayesuk New Member

    Addition Info

    Last part of my mail log file.

    Jun 25 15:52:31 server1 postfix/pickup[17324]: 936F834026E: uid=10017 from=<web6_mhayes>
    Jun 25 15:52:31 server1 postfix/cleanup[19137]: 936F834026E: message-id=<20060625145231.936F834026E@server1.touchonehosting.co.uk>
    Jun 25 15:52:31 server1 postfix/qmgr[17325]: 936F834026E: from=<web6_mhayes@server1.touchonehosting.co.uk>, size=772, nrcpt=2 (queue active)
    Jun 25 15:52:31 server1 postfix/smtp[19138]: warning: connect to private/tlsmgr: No such file or directory
    Jun 25 15:52:32 server1 postfix/smtp[19138]: warning: connect to private/tlsmgr: No such file or directory
    Jun 25 15:52:32 server1 postfix/smtp[19138]: warning: problem talking to server private/tlsmgr: No such file or directory
    Jun 25 15:52:32 server1 postfix/smtp[19138]: warning: no entropy for TLS key generation: disabling TLS support
    Jun 25 15:52:45 server1 postfix/anvil[18940]: statistics: max connection rate 1/60s for (smtp:212.159.14.214) at Jun 25 15:49:25
    Jun 25 15:52:45 server1 postfix/anvil[18940]: statistics: max connection count 1 for (smtp:212.159.14.214) at Jun 25 15:49:25
    Jun 25 15:52:45 server1 postfix/anvil[18940]: statistics: max cache size 1 at Jun 25 15:49:25
    Jun 25 15:52:47 server1 postfix/smtp[19138]: 936F834026E: to=<mhayes1@touchone.co.uk>, relay=mx.core.plus.net[212.159.11.36], delay=16, status=bounced (host mx.core.plus.net[212.159.11.36] said: 550-Verification failed for <web6_mhayes@server1.touchonehosting.co.uk> 550-REJECTED: Cannot route message 550 Sender verify failed (in reply to RCPT TO command))
    Jun 25 15:52:47 server1 postfix/smtp[19138]: 936F834026E: to=<mhayes@touchone.co.uk>, relay=mx.core.plus.net[212.159.11.36], delay=16, status=bounced (host mx.core.plus.net[212.159.11.36] said: 550 Sender verify failed (in reply to RCPT TO command))
    Jun 25 15:52:48 server1 postfix/cleanup[19137]: 07A3334026F: message-id=<20060625145248.07A3334026F@server1.touchonehosting.co.uk>
    Jun 25 15:52:48 server1 postfix/qmgr[17325]: 07A3334026F: from=<>, size=3331, nrcpt=1 (queue active)
    Jun 25 15:52:48 server1 postfix/qmgr[17325]: 936F834026E: removed
    Jun 25 15:52:48 server1 postfix/pickup[17324]: 18CDB34026E: uid=10017 from=<web6_mhayes>
    Jun 25 15:52:48 server1 postfix/cleanup[19137]: 18CDB34026E: message-id=<20060625145248.18CDB34026E@server1.touchonehosting.co.uk>
    Jun 25 15:52:48 server1 postfix/local[19147]: 07A3334026F: to=<web6_mhayes@server1.touchonehosting.co.uk>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Jun 25 15:52:48 server1 postfix/qmgr[17325]: 07A3334026F: removed
    Jun 25 15:52:48 server1 postfix/qmgr[17325]: 18CDB34026E: from=<web6_mhayes@server1.touchonehosting.co.uk>, size=407, nrcpt=1 (queue active)
    Jun 25 15:52:48 server1 postfix/local[19147]: 18CDB34026E: to=<admispconfig@localhost.touchonehosting.co.uk>, orig_to=<admispconfig@localhost>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Jun 25 15:52:48 server1 postfix/qmgr[17325]: 18CDB34026E: removed
    Jun 25 15:53:05 server1 postfix/pickup[17324]: B148534026E: uid=10017 from=<web6_mhayes>
    Jun 25 15:53:05 server1 postfix/cleanup[19137]: B148534026E: message-id=<20060625145305.B148534026E@server1.touchonehosting.co.uk>
    Jun 25 15:53:05 server1 postfix/qmgr[17325]: B148534026E: from=<web6_mhayes@server1.touchonehosting.co.uk>, size=772, nrcpt=2 (queue active)
    Jun 25 15:53:21 server1 postfix/smtp[19138]: B148534026E: to=<mhayes1@touchone.co.uk>, relay=mx.core.plus.net[212.159.11.36], delay=16, status=bounced (host mx.core.plus.net[212.159.11.36] said: 550-Verification failed for <web6_mhayes@server1.touchonehosting.co.uk> 550-REJECTED: Cannot route message 550 Sender verify failed (in reply to RCPT TO command))
    Jun 25 15:53:21 server1 postfix/smtp[19138]: B148534026E: to=<mhayes@touchone.co.uk>, relay=mx.core.plus.net[212.159.11.36], delay=16, status=bounced (host mx.core.plus.net[212.159.11.36] said: 550 Sender verify failed (in reply to RCPT TO command))
    Jun 25 15:53:21 server1 postfix/cleanup[19137]: 1F73734026F: message-id=<20060625145321.1F73734026F@server1.touchonehosting.co.uk>
    Jun 25 15:53:21 server1 postfix/qmgr[17325]: 1F73734026F: from=<>, size=3331, nrcpt=1 (queue active)
    Jun 25 15:53:21 server1 postfix/qmgr[17325]: B148534026E: removed
    Jun 25 15:53:21 server1 postfix/pickup[17324]: 2E6D234026E: uid=10017 from=<web6_mhayes>
    Jun 25 15:53:21 server1 postfix/cleanup[19137]: 2E6D234026E: message-id=<20060625145321.2E6D234026E@server1.touchonehosting.co.uk>
    Jun 25 15:53:21 server1 postfix/local[19147]: 1F73734026F: to=<web6_mhayes@server1.touchonehosting.co.uk>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Jun 25 15:53:21 server1 postfix/qmgr[17325]: 1F73734026F: removed
    Jun 25 15:53:21 server1 postfix/qmgr[17325]: 2E6D234026E: from=<web6_mhayes@server1.touchonehosting.co.uk>, size=407, nrcpt=1 (queue active)
    Jun 25 15:53:21 server1 postfix/local[19147]: 2E6D234026E: to=<admispconfig@localhost.touchonehosting.co.uk>, orig_to=<admispconfig@localhost>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Jun 25 15:53:21 server1 postfix/qmgr[17325]: 2E6D234026E: removed

    Thanks
     
  3. mphayesuk

    mphayesuk New Member

    A Bit more info main.cf

    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    inet_protocols = ipv4
    biff = no
    mail_spool_directory = /var/mail
    canonical_maps = hash:/etc/postfix/canonical
    #virtual_maps = hash:/etc/postfix/virtual
    relocated_maps = hash:/etc/postfix/relocated
    transport_maps = hash:/etc/postfix/transport
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    masquerade_exceptions = root
    masquerade_classes = envelope_sender, header_sender, header_recipient
    myhostname = server1.$mydomain
    program_directory = /usr/lib/postfix
    inet_interfaces = all
    masquerade_domains =
    #mydestination = $myhostname, localhost.$mydomain
    defer_transports =
    disable_dns_lookups = no
    relayhost =
    mailbox_command =
    mailbox_transport =
    strict_8bitmime = no
    disable_mime_output_conversion = no
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    strict_rfc821_envelopes = no
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = yes
    smtpd_use_tls = yes
    smtp_use_tls = yes
    alias_maps = hash:/etc/aliases
    mailbox_size_limit = 0
    message_size_limit = 10240000
    mydomain = touchonehosting.co.uk
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_tls_auth_only = no
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    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

    HOSTS FILE CONTAINS:
    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    212.159.54.3 server1.touchonehosting.co.uk server1
    212.159.54.4 server1.touchonehosting.co.uk server1

    HOSTNAME CONTAINS:
    server1.touchonehosting.co.uk

    HOSTS ALLOW and HOSTS DENY
    all lines are commented out

    Thanks
     
  4. mphayesuk

    mphayesuk New Member

    I think the problem is that the email address does not exist and when the remote mail server tries to check the email address it throws up the error.

    1) So first can you change the default email address for the system

    2) When a customer runs a cgi script that emails a form the email address that the sytem uses is wrong (well does not exist) so there must be a setting somewhere in postfix to edit this.....

    Somewhere there is a setting that I have done wrong....

    Can anyone help with this, I am trying to find answers myself and will post anything I find out in case anyone is having the same problem.

    Thanks
     
  5. mphayesuk

    mphayesuk New Member

    This line in my mail log:

    Jun 25 15:52:47 server1 postfix/smtp[19138]: 936F834026E: to=<mhayes1@touchone.co.uk>, relay=mx.core.plus.net[212.159.11.36], delay=16, status=bounced (host mx.core.plus.net[212.159.11.36] said: 550-Verification failed for <web6_mhayes@server1.touchonehosting.co.uk> 550-REJECTED: Cannot route message 550 Sender verify failed (in reply to RCPT TO command))

    I would have thought that the sending email address <web6_mhayes@server1.touchonehosting.co.uk> the domain should be the domain that that customer has got and not the server.xxxxx

    Thanks
     
  6. falko

    falko Super Moderator

    Create an A record for server1.touchonehosting.co.uk.
    Also, add
    Code:
    127.0.0.1 localhost.localdomain localhost
    to /etc/hosts.
     
  7. mphayesuk

    mphayesuk New Member

    Create A record in ISPconfig.... or directly into the dns records.

    Thanks

    I thought it would be something simple.
     
  8. falko

    falko Super Moderator

    The authoritative name servers for touchonehosting.co.uk are ns.hosteurope.com and ns2.hosteurope.com, so you must create the A record there.
     
  9. mphayesuk

    mphayesuk New Member

    That is stupid, I have most of my domains registered with one registrar that allows me to specify nameservers... dns records..... pretty much anything, and I set all of my domains to the same nameserer ns1.touchonehosting.co.uk and ns2..... but now after checking all the domains they have all been set back to the defaults which is the registrar ones...

    So unless they get changed back to default ones if your chosen name servers are offline I dont know, but I will make sure that A records are set correctly.

    Thanks for your help.
     

Share This Page