My server's MX records points to some servers that do spam filtering then they send it to my server. However, some servers ignore the MX record and are connecting directly to my server (using the IP returned by the DNS A record I presume). I am trying to set up an smtpd restrictions for all incoming mail except when it comes from the servers I know about. I'm struggling to figure out how I'd do this.
I think the solution is to use check_helo_access by changing my main.cf like so: smtpd_recipient_restrictions = ... reject_unauth_destination check_helo_access hash:/etc/postfix/helo_access ... permit Then inside of /etc/postfix/helo_access I don't know exactly what to put for the "everything else" condition. .example.com OK ?? WARN Does anyone have any ideas how I'd specify this? Would I have to use a pcre like the following? /[^e][^x][^a][^m][^p][^l][^e][^\.][^c][^o][^m]$/ WARN Would that even work? I think it's a valid regex and I think it's the best way to specify a not condition. Or would I have to use a negative lookahead assertions (something I don't really understand)? James Reynolds Sr Systems Administrator Department of Biology The University of Utah 801-585-3086