How to Relay Messages from the Local Machine Using the Sendmail Binary If the Sender's Domain Does Not Exist in Axigen

In the default configuration, Axigen will deny the relay for messages sent via the sendmail binary when the sender's domain does not exist in Axigen.
This article describes how to allow relay for such messages.

Solution

For example, when using a command similar to the one below:

echo test message | mailx -r someone@somedomain.local -s test userX@domain.test

if the sender's domain, somedomain.local, does not exist in Axigen, the relay will be denied. You will find in the log a message similar to the one below:

550 Relay denied for <domain.test>

In order to allow the relay, a rule that allows unauthenticated relay from the address 0.0.0.0 will be created, as below:

  • navigate into the Webadmin interface to Security & Filtering -> Acceptance & Routing -> Routing Basic Settings -> 'Allow / Disallow relaying' section
  • in the 'Exceptions' sub-section click the 'Add IP / Range' button
  • in the combo box next to 'Add exception for' select 'Single IP'
  • in the 'IP' textbox type: 0.0.0.0
  • in the combo box next to 'Allow Delivery' select 'yes'
  • do not tick the checkbox next to 'Require Authentication'
  • click the 'SAVE IP / RANGE' button

The rule will look similar to the screenshot below:

Note: The configuration of the sendmail wrapper included in Axigen is described in the KB article available at https://www.axigen.com/kb/show/35

OS: Linux
Distros: RPM based distros x64