Question
60E 6.0.4 - email alerts to custom SMTP server giving "illegal syntax" error
The 60E device is configured to use an internal SMTP server. The server has IP address 192.168.220.2 is running Postfix on Linux. The Fortigate is 192.168.220.1. Here is the output of "config system email-server":
config system email-server
set reply-to "user@domain.com"
set server "192.168.220.2"
end
Here is the output of "config system alertemail settings":
config alertemail setting
set username "user@domain.com"
set mailto1 "user@domain.com"
set antivirus-logs enable
set FDS-license-expiring-warning enable
set FDS-license-expiring-days 30
end
The Postfix mail server is reporting the following in its logs when the Fortigate tries to send an email:
Jun 03 21:35:08 MX-VM postfix/smtpd[18619]: connect from _gateway[192.168.220.1]
Jun 03 21:35:08 MX-VM postfix/smtpd[18619]: warning: Illegal address syntax from _gateway[192.168.220.1] in MAIL command: <noreply@192.168.220.2>
Jun 03 21:35:08 MX-VM postfix/smtpd[18619]: disconnect from _gateway[192.168.220.1] ehlo=1 mail=0/1 quit=1 commands=2/3
Seems like the Fortigate is trying to use "noreply@192.168.220.2" as the From: value.
Whats going on?
