[Mimedefang] backup MX server & checking for valid users
alan premselaar
alien at 12inch.com
Wed May 14 10:27:01 EDT 2003
Jim,
On 5/14/03 11:12 PM, "Jim McCullars" <jim at info.uah.edu> wrote:
>
>
> On Wed, 14 May 2003, alan premselaar wrote:
>
>> now, i've read the docs re: that function, and added a filter_recipient
>> subroutine in my filter, but it doesn't appear to be doing anything.
>
> Only thing I can think of is, there is something you have to put in
> your startup script to make sure that mimedefang gets passed the "r"
> option (in my startup, it's MX_RECIPIENT_CHECK=yes). Also, remember that
> when you do a reject in filter-recipient, it rejects the recipient, not
> the message (assuming there are multiple RCPT-TO). I'm not sure how you
> tell that it's not doing anything, but here is one test. Connect to your
> backup MX and send mail to someone. Then look at the sendmail logs for
> your primary MX. You should see a log message that the backup MX made a
> connection.
in my startup script -r is shown as RELAY_CHECK (which is being passed, as
well as -s)
to test it, i opened a terminal window connected to my primary MX machine
and tail -f /var/log/maillog'd while on another machine i telneted on port
25 to my backup MX machine and ran thru the SMTP steps by hand:
ehlo <domainname>
mail from: <my home email address>
rcpt to: <invalid email address at valid domain>
which it replied "Recipient ok..." to, and no queries showed up in the
primary MX machine's maillog.
if i take it all the way thru the DATA stage and send some arbitrary data,
it returns with "Message accepted for delivery" , passes the message to my
primary MX server which rejects it with a "Unknown user" error back to the
secondary MX server, which then sends me an email saying the transaction
failed. (not the expected results)
>
>> need it to do (replacing the hostnames with the appropriate ones) but it
>> doesn't appear to be getting called. do i need to call it myself from some
>> other part of the filter? the man page wasn't all that clear about it.
>
> No, it should just go into filter_recipient. I must admit, I have
> never used that function, only read about it.
>
ok, that's what i thought, based on the documentation. Just wanted to make
sure i wasn't missing anything.
>> are there any specific sendmail configuration settings i need to have in
>> place for this to work also?
>
> I don't use the confSMART_HOST or the mailertable feature in my
> sendmail, so I can't say for sure there, either.
>
mind if i ask how you have your secondary MX server(s) setup?
thanks,
alan
More information about the MIMEDefang
mailing list