Skip to main content
Question

Postfix relay can't send mail coming from local clients

  • February 25, 2025
  • 13 replies
  • 130 views

Forum|alt.badge.img+4

Hi,

my postfix relay server is sending email fine via office 365.

i configured a ubuntu linux client to use this postfix relay adding below line to “/etc/postfix/main.cf”, but test emails show that they are sent to the relay, but they are not delivered to the destination email!!!

 

13 replies

Forum|alt.badge.img+4
  • Author
  • Steward **
  • February 28, 2025

Hello all,

any update please?


Forum|alt.badge.img+9
  • Centreonian
  • February 28, 2025

Hello ​@adilbouazzaoui 

Are the emails actually received by the relay? It could be a network problem (centreon is not authorized, etc), or the name of the relay cannot be resolved by Centreon (DNS problem)… You can also check the relay logs.


Forum|alt.badge.img+4
  • Author
  • Steward **
  • February 28, 2025

Hello ​@adilbouazzaoui 

Are the emails actually received by the relay? It could be a network problem (centreon is not authorized, etc), or the name of the relay cannot be resolved by Centreon (DNS problem)… You can also check the relay logs.

Hi,

there is no network issue, the traffic is allowed, and when i run a test from the client i can see in our traffic monitoring that the relay received the smtp traffic from the client and that he forwarded it to microsoft


Forum|alt.badge.img+4
  • Author
  • Steward **
  • February 28, 2025

this is what i could find at the relay logs level:

it looks like the linux client is sending emails with some missed up alias or something?
 

 


Forum|alt.badge.img+4

Hi ​@cg-tw any update please?


Forum|alt.badge.img+9
  • Centreonian
  • March 3, 2025

Hello ​@adilbouazzaoui 

In your logs, root@/etc/mailname looks odd. It should be in the following format: user@domain_name.


Forum|alt.badge.img+4

Hello ​@adilbouazzaoui 

In your logs, root@/etc/mailname looks odd. It should be in the following format: user@domain_name.

Hello ​@cg-tw 

exactly. but i’m not sure how to fix it!

could you please show me how to get it fixed?

 

Thanks in advance


Forum|alt.badge.img+9
  • Centreonian
  • March 4, 2025

Hello ​@adilbouazzaoui,

I can’t really help you on that one, you alone know what the correct value is for the sender...


Forum|alt.badge.img+4

Hello ​@adilbouazzaoui,

I can’t really help you on that one, you alone know what the correct value is for the sender...

Hello ​@cg-tw 

yes i know, but i just need to you point me to the file where i need to change it.

 


Forum|alt.badge.img+9
  • Centreonian
  • March 4, 2025

Forum|alt.badge.img+4

Hello ​@cg-tw 

i did the 1st time but it didn’t work, that’s why i’m using an SMTP relay on this client machine.

now to get this clear:

1- do i need to configure the credentials of the account that will send emails on client machine if i’m already using a relay?

2- if no, then how can i properly configure the client machine to use the smtp relay?


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • March 5, 2025

Forum|alt.badge.img+4

Hello ​@ponchoh 

legend, thanks for the link, fixed my issue and made my day.

thanks for the support.

@cg-tw  thank you too for the support