OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
recipient verification with VRFY?

From: kj (koffiejunkielistlurkerkoffiejunkie.za.net)
Date: Tue Apr 01 2008 - 14:07:03 CDT


Hi guys,

Trying to get this going. The destination server does not do recipient
verification, but it does offer VRFY which allows me to distinguish
between real and bogus addresses.

I have:

/etc/postfix/transport:

somedomain.com smtp:[10.0.0.5]

/etc/postfix/verify_domain

somedomain.com verify_recipient

and then:

/etc/postfix/main.cf:

smtpd_restriction_classes = verify_recipient
verify_recipient = reject_unverified_recipient
smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        permit_mynetworks,
        reject_unauth_destination,
        reject_unknown_recipient_domain,
        check_recipient_access hash:/etc/postfix/verify_domain,
        reject_unverified_recipient

Logging is set to debug for 10.0.0.5, and in the log I see:

Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 220
mail.somedomain.com ESMTP Service ready at Tue, 1 Apr 2008 19:54:58
Apr 1 20:54:59 160468 postfix/smtp[16346]: > 10.0.0.5[10.0.0.5]: EHLO
relay.somedomain.com
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]:
250-mail.somedomain.com Hello relay.somedomain.com, pleased to meet you
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250-HELP
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250-VRFY
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]:
250-AUTH LOGIN
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250-DSN
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250-SIZE
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]:
250-8BITMIME
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250
PIPELINING
Apr 1 20:54:59 160468 postfix/smtp[16346]: server features: 0x900f size 0
Apr 1 20:54:59 160468 postfix/smtp[16346]: Using ESMTP PIPELINING, TCP
send buffer size is 4096
Apr 1 20:54:59 160468 postfix/smtp[16346]: > 10.0.0.5[10.0.0.5]: MAIL
FROM:<roototherdomain.com> SIZE=287
Apr 1 20:54:59 160468 postfix/smtp[16346]: > 10.0.0.5[10.0.0.5]: RCPT
TO:<someonesomedomain.com> ORCPT=rfc822;someonesomedomain.com
Apr 1 20:54:59 160468 postfix/smtp[16346]: > 10.0.0.5[10.0.0.5]: RSET
Apr 1 20:54:59 160468 postfix/smtp[16346]: > 10.0.0.5[10.0.0.5]: QUIT
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250
roototherdomain.com... Sender OK
Apr 1 20:54:59 160468 postfix/smtp[16346]: < 10.0.0.5[10.0.0.5]: 250
someonesomedomain.com... Recipient OK

It's just doing the usual mail from/rcpt to. How do I force it to use
VRFY instead?

Thanks

--kj