Sent from my iPhone

> On May 7, 2016, at 11:04 AM, Marcus MERIGHI <[email protected]> wrote:
> 
> [email protected] (Andrew Ruscica), 2016.05.07 (Sat) 05:16 (CEST):
>> First, hello to the list and the opensmtpd devs- thank you very much
>> for this great mta. I've been building postfix gateways on openbsd for
>> maybe close to 10 years and have been following opensmtpd with great
>> interest.
>> 
>> I'm migrating a set of postfix gateways to opensmtpd.  The role of the
>> gateway is only to filter and relay email to internal (Domino, in this
>> case) mail servers.
>> 
>> The goal of my question here is to reject invalid recipients at the
>> gateway.
>> 
>> In the past I have used a canned perl script to generate a postfix
>> table by performing an LDAP query from the mail server's directory
>> (postfix: relay_recipient_maps). I'm not a perl hacker and this has
>> stopped working at recent OpenBSD releases.
>> 
>> But it can be replaced by the more elegant reject_unverified_recipient
>> - which is a pre-check of the recipient address at the relay
>> destination and rejects the email if the recipient doesn't exist.
>> 
>> So far my searches of the openbsd and opensmtpd misc archives as well
>> as the opensmtpd.conf man page haven't revealed a similar way to
>> achieve this.
>> 
>> I'm tempted to not bother - for invalid recipients the gateway will
>> accept the email then immediately generate and send a NDR - I can't be
>> the first to use opensmtpd as a gateway like this. But in that case
>> I'm curious what have others done about the potential for the gateway
>> to be a source of backscatter spam?
> 
> If I get you right you are looking for "recipient" in smtpd.conf(5),
> second hit. 
> 
> accept from any for domain <domains> recipient <recipients> \
>  relay via ...
> 
> Back at your ldap export problem. 
> 
I haven't tried it but isn't there a table-ldap in extras? Maybe that can do 
what you need.


> I do not know of a way to do what reject_unverified_recipient does
> according to your description, assuming the pre-check happens via SMTP. 
> 
> Bye, Marcus
> 
>> !DSPAM:572d5ddd551039943851!
> 
> -- 
> You received this mail because you are subscribed to [email protected]
> To unsubscribe, send a mail to: [email protected]
> 


--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to