The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

System email not being sent

Discussion in 'E-mail Discussions' started by WildWayz, Mar 12, 2002.

  1. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Sorry to repost this, thought this might need a separate topic instead of putting it on someone elses questions...

    Root/System mail isn't being sent to me - ie if I create a new account, that email isn't sent to me (you know, the one where it says Account Created/Terminated etc) - but if I send via telnet, email or a script, it sends fine.

    the error is


    Quote:
    --------------------------------------------------------------------------------

    2002-03-11 09:19:34 16jxMQ-0000gr-00 ** james.kapherr@insomnia-webhosting.com &root@server.dvd-critic.net& R=lookuphost T=remote_smtp: SMTP error from remote mailer after end of data: host insomnia-webhosting.com [209.51.136.171]: 550 rejected: there is no valid sender in any header line (envelope sender is &&
    2002-03-11 09:19:34 16jxMQ-0000gr-00 Frozen (delivery error message)
    2002-03-11 09:19:34 End queue run: pid=15566
    2002-03-11 09:21:52 16kM08-00045X-00 &= root@server.dvd-critic.net U=root P=local S=659
    2002-03-11 09:21:56 16kM08-00045X-00 ** james.kapherr@insomnia-webhosting.com R=lookuphost T=remote_smtp: SMTP error from remote mailer after RCPT TO:&james.kapherr@insomnia-webhosting.com&: host insomnia-webhosting.com [209.51.136.171]: 550 cannot route to sender address &root@server.dvd-critic.net&
    2002-03-11 09:21:56 16kM0C-00045r-00 &= && R=16kM08-00045X-00 U=root P=local S=1704
    2002-03-11 09:21:56 16kM08-00045X-00 Error message sent to root@server.dvd-critic.net
    2002-03-11 09:21:56 16kM08-00045X-00 Completed
    2002-03-11 09:21:56 16kM0C-00045r-00 ** james.kapherr@insomnia-webhosting.com &root@server.dvd-critic.net& R=lookuphost T=remote_smtp: SMTP error from remote mailer after end of data: host insomnia-webhosting.com [209.51.136.171]: 550 rejected: there is no valid sender in any header line (envelope sender is &&
    2002-03-11 09:21:56 16kM0C-00045r-00 Frozen (delivery error message)

    --------------------------------------------------------------------------------


    Any ideas? RH 7.2, servername = server.dvd-critic.net.
    Root mail is set to relay to james.kapherr@insomnia-webhosting.com

    James
     
  2. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Still not working

    I looked at the new mailqueue feature and it shows this...

    [quote:9fd4b46c67]
    Message 16lJhb-0002yL-00 is no longer frozen
    delivering message 16lJhb-0002yL-00
    Connecting to insomnia-webhosting.com [66.154.84.227.25] ... connected
    SMTP&& 220-insomnia.pcnoc.net ESMTP Exim 3.34 #1 Fri, 15 Mar 2002 22:04:15 +0000
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail.
    SMTP&& EHLO server.dvd-critic.net
    SMTP&& 250-insomnia.pcnoc.net Hello server.dvd-critic.net [209.51.131.242]
    250-SIZE
    250-PIPELINING
    250-AUTH PLAIN LOGIN
    250-STARTTLS
    250 HELP
    SMTP&& STARTTLS
    SMTP&& 220 OpenSSL/0.9.5beta go ahead
    Initialised TLS (OpenSSL/0.9.5beta)
    Cipher: TLSv1:DES-CBC3-SHA:168
    SMTP&& EHLO server.dvd-critic.net
    SMTP&& 250-insomnia.pcnoc.net Hello server.dvd-critic.net [209.51.131.242]
    250-SIZE
    250-PIPELINING
    250-AUTH PLAIN LOGIN
    250 HELP
    SMTP&& MAIL FROM:&& SIZE=3122
    SMTP&& RCPT TO:
    SMTP&& DATA
    SMTP&& 250 && is syntactically correct
    SMTP&& 250 is syntactically correct
    SMTP&& 354 Enter message, ending with &.& on a line by itself
    SMTP&& writing message and terminating &.&
    SMTP&& 550 rejected: there is no valid sender in any header line (envelope sender is &&)
    SMTP&& QUIT
    tls_close(): shutting down SSL
    LOG: 0 MAIN
    ** james.kapherr@insomnia-webhosting.com R=lookuphost T=remote_smtp: SMTP error from remote mailer after end of data: host insomnia-webhosting.com [66.154.84.227]: 550 rejected: there is no valid sender in any header line (envelope sender is &&)
    LOG: 0 MAIN
    Frozen (delivery error message)
    Return to Mail Queue
    [/quote:9fd4b46c67]


    PLEASE help me fix this :/


    insomnia-webhosting(insomnia.pcnoc.net) is on one server dvd-critic.net(server.dvd-critic.net) is on the other.

    James
     
  3. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    In /etc/localdomains on server.dvd-critic.net - is there an entry for the server name in there? You should also ensure that there is a DNS entry on the other server or that it can do a valid lookup on the server name as well.
     
  4. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    /etc/localdomains lists server.dvd-critic.net and the other domains on the server.
    I have a DNS entry for server.dvd-critic.net too.

    Anything else? It implies that the From header isn't set(?).

    --James
     
  5. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    it gets better. I now put it wildwayz@clara.co.uk into WHM's default root mail forwarding section, and now I get the system messages - BUT they are all flagging as &Mail Returned& ie

    [quote:bd9953d72a]
    X-Envelope-To: wildwayz@clara.co.uk
    X-claradeliver-Version: 4.14.5
    X-Clara-Filter: xxbvFbh0yuPJI
    Return-path: &&
    Delivery-date: Fri, 15 Mar 2002 23:10:07 +0000
    Received: from server.dvd-critic.net ([209.51.131.242])
    by oceanus.uk.clara.net with esmtp (Exim 3.33 #1)
    id 16m0pr-00089J-00
    for wildwayz@clara.co.uk; Fri, 15 Mar 2002 23:10:07 +0000
    Received: from root by server.dvd-critic.net with local (Exim 3.34 #1)
    id 16m0pq-0000N3-00
    for root@server.dvd-critic.net; Fri, 15 Mar 2002 23:10:06 +0000
    X-Failed-Recipients: james.kapherr@insomnia-webhosting.com
    From: Mail Delivery System &Mailer-Daemon@server.dvd-critic.net&
    To: root@server.dvd-critic.net
    Subject: Mail delivery failed: returning message to sender
    Message-Id: &E16m0pq-0000N3-00@server.dvd-critic.net&
    Date: Fri, 15 Mar 2002 23:10:06 +0000
    X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
    X-AntiAbuse: Primary Hostname - server.dvd-critic.net
    X-AntiAbuse: Original Domain - server.dvd-critic.net
    X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0]
    X-AntiAbuse: Sender Address Domain -
    X-UIDL: 1016233807.31343.oceanus.uk.clara.net
    X-RCPT: wildwayz
    Status: U
    [/quote:bd9953d72a]

    Any other ideas?

    James
     
  6. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Hello?
    bdraco?!

    Anyone?

    I still am not getting emails if I create/delete/modify an account in WHM - but email is working on the server (ie if I email myself or send email through the server).

    PLEASE help me - I am getting no WHM emails. No Portsentry logs or logwatch reports!

    James
     
  7. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    What do I have to do to get a reply or fix to this?

    Apart from Annette - noone else (cpanel team) give 2 hoots.

    Server is a RH7.2 server, fresh install - installed Cpanel and no additional software.

    --James
     
  8. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    For that new bounce - does it give a reason for the return? From what you've posted, it just looks like a standard nondeliverable.
     
  9. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    What's happening is that the mail header doesn't have a valid from address in it.

    This is the line that gets me

    [b:2c8c8bdb35]SMTP&& 550 rejected: there is no valid sender in any header line (envelope sender is &&
    SMTP&& QUIT [/b:2c8c8bdb35]

    james.kapherr@insomnia-webhosting.com is correct and working.

    This is the error msg in exim_mainlog that I get when an email is sent to root@server.dvd-critic.net (the host name)...

    [b:2c8c8bdb35]2002-03-17 20:15:44 16mh4C-0008K6-00 &= root@server.dvd-critic.net U=root P=local-esmtp S=455
    id=Pine.LNX.4.44.0203172015270.31997-100000@server.dvd-critic.net
    2002-03-17 20:15:44 16mh4C-0008K6-00 == root@server.dvd-critic.net T=local_delivery defer (13): Permission denied:
    failed to chdir to /root
    2002-03-17 20:15:44 16mh4C-0008K6-00 ** root@server.dvd-critic.net: retry timeout exceeded
    2002-03-17 20:15:44 16mh4C-0008K9-00 &= && R=16mh4C-0008K6-00 U=root P=local S=1346
    2002-03-17 20:15:44 16mh4C-0008K6-00 Error message sent to root@server.dvd-critic.net
    2002-03-17 20:15:44 16mh4C-0008K6-00 Completed
    2002-03-17 20:15:44 16mh4C-0008K9-00 == root@server.dvd-critic.net T=local_delivery defer (13): Permission denied:
    failed to chdir to /root
    2002-03-17 20:15:44 16mh4C-0008K9-00 ** root@server.dvd-critic.net: retry timeout exceeded
    2002-03-17 20:15:44 16mh4C-0008K9-00 root@server.dvd-critic.net: error ignored
    2002-03-17 20:15:44 16mh4C-0008K9-00 Completed[/b:2c8c8bdb35]

    --James
     
  10. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    Mail sent to root@server will generate that error by default unless you change the permissions for where the system wants to write it or change the destination address for root mail, so that's not a major concern. The concern is that mail properly generated from the origination server is not delivered appropriately to the recipient server. Without actually logging on to the box, it gets a little difficult as we go further along to guess what's going on. However, if you have a test account on that new server, try sending something to the other server via webmail, and watch the log (and see if the mail bounces back). I'd also test sending messages to some offnetwork address (Yahoo) and see if the mail is delivered properly. In the end, of course, a note to your distributor is in order, since this is part of the cPanel setup and they should be able to log in to your box for troubleshooting purposes as well.
     
  11. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I logged in via webmail on the server in question, and sent 2 emails... one to an address on the server, the other an address on another server.

    here's the exim_mainlog error..
    [quote:9df5b54731]
    2002-03-17 21:09:58 16mhug-0008SU-00 &= insomnia@server.dvd-critic.net U=insomnia P=local S=713
    2002-03-17 21:09:58 16mhug-0008SU-00 == root@server.dvd-critic.net T=local_delivery defer (13): Permission denied:
    creating lock file hitching post /root/mail/inbox.lock.server.dvd-critic.net.3c950626.00007f08 (euid=99 egid=99)
    2002-03-17 21:09:58 16mhug-0008SU-00 ** james.kapherr@insomnia-webhosting.com R=lookuphost T=remote_smtp:
    SMTP error from remote mailer after end of data: host insomnia-webhosting.com [66.154.84.227]: 550 rejected:
    cannot route to sender &insomnia@server.dvd-critic.net&
    2002-03-17 21:09:58 16mhug-0008SU-00 ** root@server.dvd-critic.net: retry timeout exceeded
    2002-03-17 21:09:58 16mhug-0008SX-00 &= && R=16mhug-0008SU-00 U=root P=local S=1966
    2002-03-17 21:09:58 16mhug-0008SU-00 Error message sent to insomnia@server.dvd-critic.net
    2002-03-17 21:09:59 16mhug-0008SU-00 Completed
    2002-03-17 21:09:59 16mhug-0008SX-00 =& insomnia &insomnia@server.dvd-critic.net& D=localuser T=local_delivery
    2002-03-17 21:09:59 16mhug-0008SX-00 Completed
    2002-03-17 21:10:00 Start queue run: pid=32524
    2002-03-17 21:10:00 End queue run: pid=32524
    [/quote:9df5b54731]
     
  12. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    exim has a debugging tool you can use from the shell:

    exim -bt -d9 account@example.com

    the number after -d is the debug level, -d9 being the most detailed level.

    Perhaps it can help you find where the problem lies...

    Take a look at the exim_rejectlog too to see what header fields are causing problems.

    And also here:
    http://www.exim.org/FAQ.html#SEC65
    http://www.exim.org/FAQ.html#SEC148
     
  13. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Thanks :)

    here's the output...

    [quote:0d389f1f15]
    root@server [~]# exim -bt -d9 root@server.dvd-critic.net
    Exim version 3.34 debug level 9 uid=0 gid=0
    Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
    Caller is an admin user
    Caller is a trusted user
    originator: uid=0 gid=0 login=root name=root
    sender address = root@server.dvd-critic.net
    Address testing: uid=0 gid=0 euid=0 egid=0
    &&&&&&&&&&&&&&&&&&&&&&&&
    Testing root@server.dvd-critic.net
    search_open: lsearch &/etc/localdomains&
    search_find: file=&/etc/localdomains&
    key=&server.dvd-critic.net& partial=-1
    LRU list:
    7/etc/localdomains
    End
    internal_search_find: file=&/etc/localdomains&
    type=lsearch key=&server.dvd-critic.net&
    file lookup required for server.dvd-critic.net
    in /etc/localdomains
    lookup yielded:
    server.dvd-critic.net in local_domains? yes (matched lsearch;/etc/localdomains)
    server.dvd-critic.net in percent_hack_domains? no (end of list)
    address root@server.dvd-critic.net
    local_part=root domain=server.dvd-critic.net
    domain is local
    &&&&&&&&&&&&&&&&&&&&&&&&
    directing root@server.dvd-critic.net
    calling central_filter director
    central_filter director: file = /etc/vfilters/server.dvd-critic.net
    /etc/vfilters/server.dvd-critic.net not found
    calling virtual_aliases_nostar director
    df_lookup entered: search type = lsearch
    virtual_aliases_nostar director: lsearch key=root@server.dvd-critic.net
    file=&/etc/valiases/server.dvd-critic.net&
    search_open: lsearch &/etc/valiases/server.dvd-critic.net&
    virtual_aliases_nostar director skipped: file failed to open and optional flag set
    search_open: lsearch &/etc/userdomains&
    search_find: file=&/etc/userdomains&
    key=&server.dvd-critic.net& partial=-1
    LRU list:
    7/etc/userdomains
    7/etc/localdomains
    End
    internal_search_find: file=&/etc/userdomains&
    type=lsearch key=&server.dvd-critic.net&
    file lookup required for server.dvd-critic.net
    in /etc/userdomains
    lookup failed
    server.dvd-critic.net in &lsearch;/etc/userdomains&? no (end of list)
    virtual_sa_user director skipped: domain mismatch
    search_open: lsearch &/etc/userdomains&
    cached open
    search_find: file=&/etc/userdomains&
    key=&server.dvd-critic.net& partial=-1
    LRU list:
    7/etc/userdomains
    7/etc/localdomains
    End
    internal_search_find: file=&/etc/userdomains&
    type=lsearch key=&server.dvd-critic.net&
    cached data used for lookup of server.dvd-critic.net
    in /etc/userdomains
    lookup failed
    server.dvd-critic.net in &lsearch;/etc/userdomains&? no (end of list)
    virtual_user director skipped: domain mismatch
    calling virtual_aliases director
    df_lookup entered: search type = lsearch
    virtual_aliases director: lsearch* key=root@server.dvd-critic.net
    file=&/etc/valiases/server.dvd-critic.net&
    search_open: lsearch &/etc/valiases/server.dvd-critic.net&
    virtual_aliases director skipped: file failed to open and optional flag set
    calling userforward director
    userforward director: file = .forward
    successful stat of /root/.
    1 bytes read from /root/.forward
    file is not a filter file
    parse_extract_addresses:

    calling sa_localuser director
    Starting Perl interpreter
    sa_localuser director skipped: condition failure
    calling localuser director
    queued for local_delivery transport: local_part=root domain=server.dvd-critic.net
    errors_to=NULL
    domain_data=NULL local_part_data=NULL
    localuser director succeeded for root
    root@server.dvd-critic.net
    deliver to root in domain server.dvd-critic.net
    director = localuser, transport = local_delivery
    search_tidyup called
    [/quote:0d389f1f15]

    --James
     
  14. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    VERY weird....

    I SSH'd into my problematic server and used Pine to send 2 emails...
    1 to my home ISP
    1 to my other webserver
    Home ISP's email arrived ok
    Other webserver didn't

    There isn't a reject/error log :/

    I am willing to pay someone to fix this.

    James
     
  15. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    What's the output of these:

    # ls -l /root/.forward

    # cat /root/.forward
     
  16. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    root@server [~]# ls -l /root/.forward
    -rw-r--r-- 1 root root 1 Mar 16 23:51 /root/.forward

    # cat /root/.forward = empty

    --James
    ps thanks for helping
     
  17. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    Edit the /root/.forward file and write the address you want to use to retrieve your root mail (I don't remember now if quotes are necessary but I have them):

    &james.kapherr@insomnia-webhosting.com&

    and try again :)
     
  18. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I tried that and still get
    [quote:70d6802ccc]
    2002-03-19 14:46:46 16nKsw-0006Iq-00 &= root@server.dvd-critic.net U=root P=local-esmtp S=458 id=Pine.LNX.4.44.0203191446070.24231-100000@server.dvd-critic.net
    2002-03-19 14:46:47 16nKsw-0006Iq-00 ** james@insomnia-webhosting.com R=lookuphost T=remote_smtp: SMTP error from remote mailer after RCPT TO:&james@insomnia-webhosting.com&: host insomnia-webhosting.com [66.154.84.227]: 550 cannot route to sender address &root@server.dvd-critic.net&
    2002-03-19 14:46:47 16nKsw-0006Iq-00 ** james.kapherr@insomnia-webhosting.com &root@server.dvd-critic.net& R=lookuphost T=remote_smtp: SMTP error from remote mailer after RCPT TO:&james.kapherr@insomnia-webhosting.com&: host insomnia-webhosting.com [66.154.84.227]: 550 cannot route to sender address &root@server.dvd-critic.net&
    2002-03-19 14:46:47 16nKsx-0006Is-00 &= && R=16nKsw-0006Iq-00 U=root P=local S=1814
    2002-03-19 14:46:47 16nKsw-0006Iq-00 Error message sent to root@server.dvd-critic.net
    2002-03-19 14:46:47 16nKsw-0006Iq-00 Completed
    2002-03-19 14:46:47 16nKsx-0006Is-00 ** james.kapherr@insomnia-webhosting.com &root@server.dvd-critic.net& R=lookuphost T=remote_smtp: SMTP error from remote mailer after end of data: host insomnia-webhosting.com [66.154.84.227]: 550 rejected: there is no valid sender in any header line (envelope sender is &&)
    2002-03-19 14:46:47 16nKsx-0006Is-00 Frozen (delivery error message)
    [/quote:70d6802ccc]

    I CAN send it to my home ISP though - but cannot send it to ANY domain on my other server nor this one.

    James
     
  19. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    ok - Juanra has managed to find out the problem.

    I am still kicking myself over it's simplicity!

    Basically, I have 2 webservers....

    My 1st one I use to host dvd-critic.net on it but then I got a 2nd server and moved the domain over as the primary domain on it - not deleting the old account on the 1st server!

    Soooooooo when emails were being sent to the 1st server from the 2nd server, the reverse check was failing :)

    All I did to fix it was to terminate the account on the 1st server!

    I feel sooooooooooo small :~(

    James
     
Loading...

Share This Page