Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    May 2009
    Posts
    28

    Exclamation Mail Queue Manager Exim problem

    hey,
    i'm having a problem sending messages using webmail and php script (wordpress)

    all emails stuck in the mail queue manager:
    Mail Queue Manager
    Code:
    Delivery attempt for Message ID 1PzIJm-0003rl-Ak
    Message 1PzIJm-0003rl-Ak is not frozen LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1PzIJm-0003rl-Ak delivering 1PzIJm-0003rl-Ak LOG: MAIN PANIC == Joehon@ymail.com R=lookuphost T=remote_smtp defer (-1): failed to expand "interface" option for remote_smtp transport: failed to open /etc/mailips for linear search: Permission denied (euid=47 egid=12)
    please Help

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Mail Queue Manager Exim problem

    The error message indicates the file having the issue:

    failed to open /etc/mailips for linear search: Permission denied
    Check /etc/mailips permissions:

    Code:
    ls -lah /etc/mailips
    It should show the following:

    Code:
    # ls -lah /etc/mailips
    -rw-r----- 1 root mail 0 Mar 11 21:40 /etc/mailips
    If it does not show root:mail for ownership, then fix that:

    Code:
    chown root:mail /etc/mailips
    If it doesn't show 640 for file permissions, fix that:

    Code:
    chmod 640 /etc/mailips
    If it does have the right ownership and permissions, then next check the file isn't set to be immutable:

    Code:
    lsattr /etc/mailips
    It might look like the following:

    Code:
    # lsattr /etc/mailips
    -------A----- /etc/mailips
    An uppercase A is fine. If it has a lowercase i or a lowercase a, then it isn't fine, and those need removed:

    Code:
    chattr -ia /etc/mailips
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    May 2009
    Posts
    28

    Default Re: Mail Queue Manager Exim problem

    thank you very much it works now but i'm getting this error on local emails:

    == root@server1.domain.com R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Mail Queue Manager Exim problem

    That error is only for emails to the root user. Are any emails you send normally actually not working, because that email doesn't impact sending and receiving from normal email users. It's only the root user that is on the never users list and the root user shouldn't be sending and receiving emails normally.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Nov 2007
    Posts
    865

    Default Re: Mail Queue Manager Exim problem

    i am also having the same issue

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Mail Queue Manager Exim problem

    There were two issues discussed in this thread. Please provide more details.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Re: Mail Queue Manager Exim problem

    I'm encountering the same issue as described by the OP.

    Code:
    2011-06-23 11:00:43 REDACTED == REDACTED@DOMAIN.COM R=lookuphost T=remote_smtp defer (-1): failed to expand "interface" option for remote_smtp transport: failed to open /etc/mailips for linear search: Permission denied (euid=47 egid=12)
    I'm noticing this error when attempting to send mail through the PHP mail() function through jailshell. Permissions on /etc/mailips are correct.

    I've reproduced this behavior on four separate servers.

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Re: Mail Queue Manager Exim problem

    The permissions are not the same when viewed through jailshell:

    Code:
    root@server [~]# su testuser
    testuser@testuser.net [~]# whoami
    testuser
    testuser@testuser.net [~]# echo $SHELL
    /usr/local/cpanel/bin/jailshell
    testuser@testuser.net [~]# ls -l /etc/mailips
    -rw-r----- 1 root root 4516 Jun 23 10:58 /etc/mailips
    testuser@testuser.net [~]# exit
    exit
    root@server [~]# whoami
    root
    root@server [~]# ls -l /etc/mailips
    -rw-r----- 1 root mail 4516 Jun 23 00:09 /etc/mailips

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Re: Mail Queue Manager Exim problem

    I opened a ticket on this and received the following reply:

    Quote Originally Posted by Kenneth Smith
    Hi,

    This is happening because php's mail function runs whatever is defined in the sendmail_path, which is going to be /usr/sbin/sendmail by default. That binary SETUIDs it self to mailnull (exim user) but as you pointed out in the thread /etc/mailips is owned by root:root and is not world readable.

    UID 47 is mailnull on most every system unless 47 just happen to be taken when cpanel was installed, so maillnull can't read /etc/mailips.

    Right now the work around for you would be to give the user a real shell so you're not stuck with the modified permissions mailnull seems to be using when providing access to the file.

    I'm opening a ticket with dev now to see if this was intentional for security or if it was overlooked and and should be fixed.

    --
    Kenneth Smith
    Technical Analyst II
    cPanel, Inc.

  10. #10
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Mail Queue Manager Exim problem

    This isn't technically the same issue as the original poster who was using webmail and WordPress, since those are not jailed shell command line attempts to send mail.

    Basically in jailed shell, you have /home/username/virtfs setup as the location for hardlinked files. If you go to /home/testuser/virtfs/etc and list the mailips file, it does have a different date and ownership than the /etc/mailips file. You cannot send emails using PHP mail() function in a jailed shell environment of this nature. You will need to either make this user a non-jailed shell user (regular shell) or send the emails normally using the account (Webmail, email client, PHP mail() function in a script like WordPress) without being in jailed shell command line.

    Edit: I didn't realize a reply had already been provided via a ticket as a ticket wasn't mentioned until after I had typed out and posted my reply.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Re: Mail Queue Manager Exim problem

    Thanks, Tristan. Not to hijack the OP's thread, but another option might be to use the PEAR Mail package and authenticate to the SMTP server directly. Though, I haven't tested this.

Similar Threads & Tags
Similar threads

  1. Difference between ConfigServer Mail Queue and Mail Queue Manager
    By fearmydesign in forum E-mail Discussions
    Replies: 4
    Last Post: 02-28-2011, 06:48 PM
  2. Replies: 4
    Last Post: 02-28-2011, 06:48 PM
  3. exim & mail queue problem
    By michee in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 09-21-2007, 04:43 AM
  4. Mail queue Manager Problem (delay)
    By idat in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-15-2007, 10:00 PM
  5. Exim mail queue problem
    By gvard in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-10-2005, 01:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube