E-mail Headers

I am still having trouble with e-mails not going through our Mediawiki jumpbox.

It is internal to our corporate network, and therefore has a FQDN of "ourwiki.ourdomain.msft"

I couldn't get e-mails to go to our ISP's e-mail server, so I setup SMTP on one of our windows servers to relay the messages and see why they are getting rejected. Looking at the messages, they are saying they are from "ourwiki.localdomain" instead of "ourwiki.ourdomain.msft". I have opened up some of the messages, edited the text to change it to "ourwiki.ourdomain.msft" and the message will go through. With "ourwiki.localdomain" our ISP rejects the message saying:

Diagnostic-Code: smtp;450 4.1.8 : Sender address rejected: Domain not found

Any suggestions on how to fix this so it pulls the correct FQDN?
Thank you!

E-mail Headers

Hi,
Yeah, this is something we should improve now that we have a "Public Address" setting. In this case, if you have a registered JumpBox you can do the following:

  • Enable SSH in the JumpBox
  • SSH in as admin
  • edit the mailserver config file:
    sudo nano /etc/postfix/main.c
    

    to contain the following at the top

    myhostname = hostname.something.com
    
  • Reload the mail server configuration:
    sudo postfix reload
    

Now send an email and it should have whatever you configured as the domain name.