Emailaddress used to release mail

Questions and answers about how to do stuff
Post Reply
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Emailaddress used to release mail

Post by Mr. Happy »

I just tried to release a mail to an external mailaddress.
The logging said it could not be delivered, because the domain doesn't exist (correct 'cause the sending emailaddress is my internal domain).
Where do I change it to my external domainname? (Or is that a definite no-no?)
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Emailaddress used to release mail

Post by shawniverson »

You could add an entry into /etc/hosts to get around this, I believe. :D
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Emailaddress used to release mail

Post by Mr. Happy »

I could, but that would not solve the issue...
The external domain can't do a nslookup of my internal domain...
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Emailaddress used to release mail

Post by darky83 »

If you release an message the default 'from' is used so i'm guessing here that your from adres in the mail is wrong?

I never tried it but you could try to edit the source email, first you need the ID of the message you can see the ID in MailWatch it is in the format of xxxxxxxxxx.xxxxx

Then use the first part of the ID and search for the local file:

Code: Select all

find /var/spool/MailScanner/quarantine/ -name *E24D1120FBA* -print
Edit the file it has found so the correct 'FROM' is used and try to re-release the message.

Ofcourse a better aproach would be to use the correct sending domain for all your mails :)
Version eFa 4.x now available!
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Emailaddress used to release mail

Post by Mr. Happy »

Sending mail to external smtp works fine, except when I try to release from quarantine to an external smtp server.
Then it fails (cause it using postmaster@<internaldomain.lan>.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Emailaddress used to release mail

Post by darky83 »

Ah, misunderstood that.

login with SSH and in the menu choose "IP settings"
Then change the domain name to your external domain.
Version eFa 4.x now available!
Mr. Happy
Posts: 51
Joined: 03 Jan 2014 17:07

Re: Emailaddress used to release mail

Post by Mr. Happy »

thanks!
Post Reply