Change default exim sending email (from)

mirchevideas

New member
Joined
Feb 4, 2014
Messages
3
Hi,

We use a server under NAT and it hosts a domain with unvalid tld as "MI" and when we try to send a mail with phpmail at most cases we got this error in /var/log/exim/mainlog
2014-11-02 04:00:06 1XkV74-0006Qj-6i == *@*.* R=lookuphost T=remote_smtp defer (-44): SMTP error from remote mail server after RCPT TO:<*@*.*>: host mail4.*.* [*.*.*.*]: 450 4.1.8 <*@*>: Sender address rejected: Domain not found

So how I can change default sending email because these emails are automatically sended from our ticket systems when we reply to our customer tickets and this is a problem for us?

Best regards,
Mirchev Ideas!
 
Hi,

There are no answers from yesterday but I try few fixes but they not working for me :(
I create a file /etc/email-addresses with following content:
Code:
myusername: [email protected]
And when I try to import it in exim.conf in REWRITE CONFIGURATION with following code:
Code:
#*@myusername ${lookup{$1}lsearch{/etc/email-addresses}{$value}fail} bcfrF
I've got this error on "service exim restart":
Code:
Starting exim: 2014-11-04 19:10:37 Exim configuration error in line 505 of /etc/exim.conf:
  option setting expected: *@myusername ${lookup{$1}lsearch{/etc/email-addresses}{$value}fail} bcfrF

I also try to make this for all localdomains with this code:
Code:
*@+local_domains "${lookup{${local_part}}lsearch{/etc/email-addresses} {$value}fail}" Ffrs
But I also get the same error...

Is there any ideas for this? This server running CentOS 6.5 with DA 1.46.2.

Best regards,
Mirchev Ideas Team!
 
Back
Top