Postfix and Sun Fire x64 – ILOM SMTP Alert Management

I have the dreaded Sun Fire x64 hardware with ILOM that sends illegal SMTP “MAIL FROM:” addresses.

May 28 18:19:24 mailhost postfix/smtpd[2874]: connect from unknown[192.168.1.20]
May 28 18:19:25 mailhost postfix/smtpd[2874]: warning: Illegal address syntax from unknown[192.168.1.20] in MAIL command: <ilom-alert@192.168.1.20>
May 28 18:19:25 mailhost postfix/smtpd[2874]: disconnect from unknown[192.168.1.20]

The ‘[]’ around the IP are missing. To fix this, I allowed resolution of numeric domains on my internal smarthost and rewrote the illegal addresses as they came in:

postconf -e resolve_numeric_domain=yes
postconf -e canonical_maps=pcre:/etc/postfix/canonical

cat <<EOF >>/etc/postfix/canonical
### Sun Fire x86_64 - ILOM Alert
/(.*)@([0-9.]+)/ \$1@[\$2]
### Sun Fire x86_64 - ILOM Alert
EOF

postfix reload

These are links that helped me figure out what to fix:

Advertisements

About Michael Arnold
This is where I write about all of my unix hacking experiences so that you may be able to learn from my troubles.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: