Page 1 of 1

postfix not mail from other hosts

Posted: Sun Feb 16, 2020 1:05 pm
by mister_v
my mail server is not accepting from other server on the same network.
But i did set it to subnet in main.cf

Code: Select all

mynetworks_style = subnet
anyone has any ideas ?

Re: postfix not mail from other hosts

Posted: Sun Feb 16, 2020 1:10 pm
by chris
are you sending to a user on the server.
Do a test from the client:

Code: Select all

sendmail user@host
and check the logs on the client and on the server.

Re: postfix not mail from other hosts

Posted: Sun Feb 16, 2020 9:01 pm
by mister_v
The mail leaves the client to the server,
but it is not delivered.

Re: postfix not mail from other hosts

Posted: Sun Feb 16, 2020 9:02 pm
by chris
Are you sure you are sending it to the right account?

sometimes you need to also add the domain name (even if it is not a public domain).

Code: Select all

sendmail user@host.domain.com

Re: postfix not mail from other hosts

Posted: Sun Feb 16, 2020 9:05 pm
by mister_v
thanks, that was indeed the problem.
When I add the domain name,
the mail is delivered.

I thought that before, the hostname was enough?