Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    37

    Question Exim send emails using server hostname instead of clients domain name??

    Hi,

    What could be the reason ( or setting ) that our server is using the hostname to send out emails instead of using the clients domain name?

    For example: email is sent out as follow: account@hostname

    instead of mailbox@accountsdomainname.

    I have also enabled in WHM the setting: Automatically send outgoing mail from the account's IP address instead of the main IP address. Warning: If you turn this setting on you should make sure reverse DNS entries match the ones in /etc/mail_reverse_dns.
    Last edited by Nick57; 08-18-2009 at 02:43 PM.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Nick57 View Post
    Hi,

    What could be the reason ( or setting ) that our server is using the hostname to send out emails instead of using the clients domain name?

    For example: email is sent out as follow: account@hostname

    instead of mailbox@accountsdomainname.

    I have also enabled in WHM the setting: Automatically send outgoing mail from the account's IP address instead of the main IP address. Warning: If you turn this setting on you should make sure reverse DNS entries match the ones in /etc/mail_reverse_dns.
    Are these emails being sent via POP, IMAP, Webmail or a script installed on a user's account? If it is a script, is the script explicitly specifying the from address on the email?

  3. #3
    Member
    Join Date
    Jul 2005
    Posts
    37

    Default

    This happens with any of these protocols smtp/imap, when an account sends an email it has in the header not his domain name but the hostname of the server. The originating server for any outgoing message is again hostname instead of mail.customer.com, actually the email server doesn't masquerade properly the envelope.

    In the php script it will requires a clear password in the PHP script which is not acceptable by customer (smtp authentification)

    When doing a telnet port 25 it identifys itself as the hostname when using the IP of a customers package, 220-hostname ESMTP Exim 4.69......

    Also in the CPanel, mail client configuration it does show the hostname to be used :-( in the section of manual settings.

    I am using: cPanel 11.24.5-R38506 - WHM 11.24.2 - X 3.9

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Nick57 View Post
    This happens with any of these protocols smtp/imap, when an account sends an email it has in the header not his domain name but the hostname of the server. The originating server for any outgoing message is again hostname instead of mail.customer.com, actually the email server doesn't masquerade properly the envelope.

    In the php script it will requires a clear password in the PHP script which is not acceptable by customer (smtp authentification)

    When doing a telnet port 25 it identifys itself as the hostname when using the IP of a customers package, 220-hostname ESMTP Exim 4.69......

    Also in the CPanel, mail client configuration it does show the hostname to be used :-( in the section of manual settings.

    I am using: cPanel 11.24.5-R38506 - WHM 11.24.2 - X 3.9
    Okay, so even when your customer uses webmail or a client-side mail app, their "from address" is always username@server-hostname rather than username@domain?

  5. #5
    Member
    Join Date
    Jul 2005
    Posts
    37

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Okay, so even when your customer uses webmail or a client-side mail app, their "from address" is always username@server-hostname rather than username@domain?
    Yes indeed, very annoying!
    Not sure if the client side of their PC is configured correct, that's not my problem, it doesn't work with any php script running on the server or when sending emails it is always the wrong format. seems to me the users are not trusted...

    When googling I found this:

    untrusted_set_sender = *@+local_domains

    When adding this in the exim it makes the Return path correct, but of course it is not a 100% solution, only a little workaround partly.
    Last edited by Nick57; 08-19-2009 at 12:27 PM. Reason: found something

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Nick57 View Post
    Yes indeed, very annoying!
    Not sure if the client side of their PC is configured correct, that's not my problem, it doesn't work with any php script running on the server or when sending emails it is always the wrong format. seems to me the users are not trusted...

    When googling I found this:

    untrusted_set_sender = *@+local_domains

    When adding this in the exim it makes the Return path correct, but of course it is not a 100% solution, only a little workaround partly.
    In the PHP scripts, are they specifying the from parameter?

    Also, are you running PHP as user nobody or via SuPHP/SuExec?

  7. #7
    Member
    Join Date
    Jul 2005
    Posts
    37

    Default

    Yes, they use the from parameter but it is being overruled by exim, it seems exims deletes also the -f option as well as so does exim deletes it for the webmail clients ( -f is the so called 5th parameter)

    And yes, we have SuPHP/SuExec enabled on the server.

  8. #8
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Nick57 View Post
    Yes, they use the from parameter but it is being overruled by exim, it seems exims deletes also the -f option as well as so does exim deletes it for the webmail clients ( -f is the so called 5th parameter)

    And yes, we have SuPHP/SuExec enabled on the server.
    I recommend letting our technical analysts assist you with this issue: http://tickets.cPanel.net/submit

Similar Threads & Tags
Similar threads

  1. EXIM blocking users send out emails
    By georgeb in forum New User Questions
    Replies: 2
    Last Post: 08-12-2011, 02:22 PM
  2. exim can not send emails
    By saeed.ashour in forum E-mail Discussions
    Replies: 1
    Last Post: 08-27-2010, 03:23 PM
  3. emails to root bounce -- site with same domain as hostname
    By dcusimano in forum E-mail Discussions
    Replies: 3
    Last Post: 03-17-2008, 06:30 PM
  4. Exim allows to send non-authenticated emails
    By bastek72pl in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-20-2006, 10:36 AM
  5. Replies: 5
    Last Post: 05-25-2005, 12:17 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube