Undelivered Mail Returned to Sender with .local domain

smarthost
mail

(Amort Gottfried) #1

Good evening
can no longer send the email via the smarthost. Receive the following error message

his is the mail system at host nethserver.domain.local.

I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<abc@me.com>: host smtp.abc.net[67.45.256.209] said: 554 5.1.8
<info@domain.local>: Sender address rejected: Domain not found (in reply to
RCPT TO command)


(Federico Ballarini) #2

Yes because you are exit with a domain.local and if the recipient server verify the address, your address it’s invalid.


(Amort Gottfried) #3

Thanks for your help, so what am I supposed to do … Sogo sending works.


(Federico Ballarini) #4

But why are you sending with a .local domain?


(Amort Gottfried) #5

Have the server with nethserver.domain.local installed.


(Federico Ballarini) #6

Yes, but you can add a second email domain and change identity of user to exit with another domain.


(Amort Gottfried) #7

Hello, I have already done that, domaine .it. Where can I change the identity of the user for the external domain to appear?


(Federico Ballarini) #8

Please have a look to this post. I think it can be a solution.


(Amort Gottfried) #9

So I should put it this way?

# Manual changes will be lost when this file is regenerated.                                                                                  
#                                                                                                                                             
# Please read the developer's guide, which is available                                                                                       
# at NethServer official site: https://www.nethserver.org                                                                                     
#                                                                                                                                             
#                                                                                                                                             
#                                                                                                                                             
# 10root_map                                                                                                                                  
#                                                                                                                                             
root info@domain.it                                                                                                                           
user@domain.it.ext
user ispdomain.ext

(Federico Ballarini) #10

You have to modify the file /etc/postfix/canonical by adding at the end of the file this line:

user@domain.local user@yourdomain.ext

Replace user and yourdomain/ispdomain with real values.
Then launch command postmap /etc/postfix/canonical and check that it doesn’t return errors.
If yes restart postfix with systemctl restart postfix

Use real name instead of domain.local and yourdomain.ext


(Amort Gottfried) #11

is this correct?

# ================= DO NOT MODIFY THIS FILE =================                                                                                 
#                                                                                                                                             
# Manual changes will be lost when this file is regenerated.                                                                                  
#                                                                                                                                             
# Please read the developer's guide, which is available                                                                                       
# at NethServer official site: https://www.nethserver.org                                                                                     
# 10root_map                                                                                                                                  
#                                                                                                                                             
root info@linux.it                                                                                                                           
gottfried@linux.it              gottfried@ispdomain.ext

(Federico Ballarini) #12

No. You are modifying an incorrect file.


(Amort Gottfried) #13

Dear Ballarini,
Gentile Signore Ballarini,

adesso ho capito… Grazie ti tutto!!

I understood it now and changed it.

it works…
Thanks alot


(Federico Ballarini) #14

Please mark this topic as solved


(Marc) #15

I’ve changed the solution mark to the post containing the most correct answer, so others can find the solution faster.


Problem while answering email via iPhone7