Change the admin email address ISPconfig uses to send mail

Discussion in 'General' started by mzan, Nov 21, 2016.

  1. mzan

    mzan New Member

    I'm looking to change the email address of messages that come from ISPconfig. I have set the admin email address under Interface > Main Config > Mail, but this doesn't change the email address which ISPconfig sends mail as.

    For instance when I reset the a password, message get sent as ispconfig@domain-name(dot)com
    I have also looked through the code but wouldn't thought hard coding a value was great practice.
    How can change this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The admin address that you can set there is used for all kind of outgoing emails. If you are sure that you set the right address and it is not used for the password reset mail, then make a feature request in the bugtracker to change that https://git.ispconfig.org/ispconfig/ispconfig3/issues
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

  4. mzan

    mzan New Member

    That's right, there is a problem with the heading "FROM" but the problem is with the source change shipping mail system. ISPConfig still trying to send from localhost instead of using SMTP.

    As if it worked properly:
    git(dot)ispconfig(dot)org/ispconfig/ispconfig3/issues/4338

    My log ISPConfig (localhost):
    Code:
    2016-11-24 09:37:04 1c9pWi-0003PI-HH <= ispconfig@domain-name(dot)com U=ispconfig P=local S=768 id=oh519s.w81ml9@domain-name(dot)com
    2016-11-24 09:37:05 1c9pWi-0003PI-HH ** mzan@domain-name-outside(dot)com R=dnslookup T=remote_smtp: SMTP error from remote mail server after end of data: host mx1.domain-name-outside(dot)com [XXX.XXX.XXX.XXX]: 550-Invalid sender From: address:  <>\n550-.\n550-[EximConfig-2.5-domain-name-outside.com-Sender-Verify-From]\n550-.\n550-Contact:  [email protected](dot)com\n550-.\n550-Sorry, your message has been rejected because\n550-your sender header from address and/or domain\n550-name is invalid or does not exist.\n550-.\n550-Please ensure that the sender and/or reply\n550-to address that you use when sending E-mail\n550-is a valid address that belongs to you with a\n550-domain name that exists and can be successfully\n550-looked up in the public Internet DNS.\n550-.\n550-Please contact your IT department or Internet\n550-Service Provider (ISP) for assistance.\n550-.\n550-If your message has been incorrectly blocked,\n550-please let us know at the above contact address.\n550 .
    2016-11-24 09:37:05 1c9pWj-0003PN-3M <= <> R=1c9pWi-0003PI-HH U=Debian-exim P=local S=2474
    2016-11-24 09:37:05 1c9pWi-0003PI-HH Completed
    2016-11-24 09:37:05 1c9pWj-0003PN-3M => ispconfig <ispconfig@domain-name(dot)com> R=local_user T=mail_spool
    2016-11-24 09:37:05 1c9pWj-0003PN-3M Completed
    
    My log exim (outside):
    Code:
    2016-11-24 09:37:06 1c9pWk-000299-5T H=out.xxxx.xxx (domain-name(dot)com) [XXX.XXX.XXX.XXX]:17570 I=[XXX.XXX.XXX.XXX]:XXX F=<ispconfig@domain-name(dot)com> rejected after DATA: Invalid sender header From:  <>: syntax error in 'From:' header when scanning for sender: missing or malformed local part in "<>"
    2016-11-24 09:37:06 SMTP connection from out.xxxx.xxxx (vdomain-name(dot)com) [XXX.XXX.XXX.XXX]:17570 I=[XXX.XXX.XXX.XXX]:XXX closed by QUIT
    
     

Share This Page