Re: Relay recipient verification - migrating from Postfix

2016-05-13 Thread Andrew Ruscica
> accept from any for domain  recipient  \
> 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.

This looks promising, thank you!


In the interest of closing this thread, I accomplished what I needed by 
creating a recurring recipients table with a simple shell script and the 
openldap-client which queries the ldap directory of the Lotus Domino server.

Thanks again.

Re: Relay recipient verification - migrating from Postfix

2016-05-09 Thread Andrew Ruscica
...

>
> If I get you right you are looking for "recipient" in smtpd.conf(5),
> second hit.
>
> accept from any for domain  recipient  \
> 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.

This looks promising, thank you!

Re: Relay recipient verification - migrating from Postfix

2016-05-07 Thread Edgar Pettijohn


Sent from my iPhone

> On May 7, 2016, at 11:04 AM, Marcus MERIGHI  wrote:
> 
> av...@protonmail.com (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  recipient  \
>  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 misc@opensmtpd.org
> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
> 


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Relay recipient verification - migrating from Postfix

2016-05-07 Thread Marcus MERIGHI
av...@protonmail.com (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  recipient  \
  relay via ...

Back at your ldap export problem. 

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 misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org