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.

Configuring mail from a dedicated server

Discussion in 'E-mail Discussions' started by harsonrobkus, Sep 25, 2010.

  1. harsonrobkus

    harsonrobkus Member

    Joined:
    Sep 25, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    I have a situation where mail is not being sent both using PHP mail and direct from our mailboxes.

    Instead the mail is going straight to the default address on the same server.

    How do I check the mail logs, where are they?

    The situation is that our domain was transferred over from a shared to a dedicated server, but we wanted to keep the mailboxes on the shared server, for security reasons, and only use the dedicated server to send mailing list + mail from program using PHP mail.

    The mailboxes on the shared server are working perfectly.

    Would be very greatful for any advise in this area.

    Thanks
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    To check the mail logs in real time, open a term and run either/both of these commands:
    Code:
    tail -f /var/log/maillog
    Code:
    tail -f /var/log/exim_mainlog
     
  3. harsonrobkus

    harsonrobkus Member

    Joined:
    Sep 25, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Here's the logs (maillog + mainlog)

    ####### = server name
    ?????????? = destination email

    The error log is empty for today.

    Can anyone find any errors in this?

    Maillog
    Sep 25 22:26:28 ######## spamd[26697]: spamd: connection from localhost.localdomain [127.0.0.1] at port 50425
    Sep 25 22:26:28 ######## spamd[26697]: spamd: setuid to root succeeded
    Sep 25 22:26:28 ######## spamd[26697]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
    Sep 25 22:26:28 ######## spamd[26697]: spamd: processing message <GTUBE1.1010101@example.net> for root:99
    Sep 25 22:26:28 ######## spamd[26697]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /.spamassassin/auto-whitelist.lock.########.ds-10.com.26697 for /.spamassassin/auto-whitelist.lock: Permission denied
    Sep 25 22:26:28 ######## spamd[26697]: spamd: identified spam (1000.0/5.0) for root:99 in 0.0 seconds, 834 bytes.
    Sep 25 22:26:28 ######## spamd[26697]: spamd: result: Y 999 - GTUBE,NO_RECEIVED,NO_RELAYS scantime=0.0,size=834,user=root,uid=99,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=50425,mid=<GTUBE1.1010101@example.net>,autolearn=no,shortcircuit=no
    Sep 25 22:26:28 ######## spamd[26665]: prefork: child states: II
    Sep 25 22:26:28 ######## dovecot: pop3-login: Aborted login (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 25 22:26:39 ######## dovecot: imap-login: Login: user=<__cpanel__service__auth__imap__rgtigbpbxzsksgzbpiket5szjzxdxym8o8uzbr5q8seqtc...>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
    Sep 25 22:26:40 ######## dovecot: IMAP(__cpanel__service__auth__imap__rgtigbpbxzsksgzbpiket5szjzxdxym8o8uzbr5q8seqtcyu0dlvszcxipxmz4xd): Disconnected: Logged out bytes=11/317

    Exim_Mainlog
    2010-09-25 22:29:20 1OzcJ6-0000ud-KW <= beatthec@########.ds-10.com U=beatthec P=local S=12158
    2010-09-25 22:29:20 1OzcJ6-0000ud-KW => beatthec <??????@???????????.???> R=localuser T=local_delivery
    2010-09-25 22:29:20 1OzcJ6-0000ud-KW Completed
    2010-09-25 22:29:20 1OzcJ6-0000uk-UU <= beatthec@########.ds-10.com U=beatthec P=local S=12158
    2010-09-25 22:29:20 1OzcJ6-0000uk-UU => beatthec <??????@???????????.???> R=localuser T=local_delivery
    2010-09-25 22:29:20 1OzcJ6-0000uk-UU Completed
     
Loading...

Share This Page