Re: Problem with Sendmail Mailertable

2020-06-22 Thread DutchDaemon - FreeBSD Forums Administrator
On 2020-06-22 16:56, Andrea Brancatelli via freebsd-stable wrote:
> Hello everybody, 
>
> Disclaimer: 
>
> I'm not very sure this is the best place to ask, in case feel free to
> point me in the right direction. 
>
> Given this, 
>
> I have an old 10.3 machine with sendmail 8.15.2 that's been working ok
> for a long time. 
>
> We have a simple mailterable rule that looks like: 
>
> schema31.itdbmail-lmtpd[10.33.whatever] 

AFAICT, you're missimg a colon here. Try:

schema31.itdbmail-lmtpd:[10.33.whatever] 




signature.asc
Description: OpenPGP digital signature


Re: Problem with Sendmail Mailertable

2020-06-22 Thread Eugene Grosbein
22.06.2020 21:56, Andrea Brancatelli via freebsd-stable wrote:

> I have an old 10.3 machine with sendmail 8.15.2 that's been working ok
> for a long time. 
> 
> We have a simple mailterable rule that looks like: 
> 
> schema31.itdbmail-lmtpd[10.33.whatever] 
> 
> That we use to forward mail in LMTP from sendmail to another machine
> where dbmail is working. Everything works as supposed but today after
> years of service someone realized the syntax user+mail...@schema31.it
> doesn't work as expected. 
> 
> I did a bit of research and debugging and whatever and found out that
> when a "+" is involved in the mail address mailertable's lookups doesn't
> seem to work and the mail gets sent to local mailer. 
> 
> I tried even something fancy like 
> 
> .schema31.it dbmail-lmtpd[10.33.whatever] 
> 
> Or even the plain all catchall 
> 
> .   dbmail-lmtpd[10.33.whatever] 
> 
> But nothing works. 
> 
> Anybody ever stepped on this and got it working? 
> 
> Please, please, please, avoid the "drop sendmail and switch to
> " replies, if I could I would already done it ;-) 

This feature works for me but I use FEATURE(virtusertable) instead of 
mailertable
to pass mail to my custom mailer:

#virtusertable
# the following rule diverts mail to "plussed" (and only plussed) destination 
addresses to custom mailer
++@realdomain.net  %1...@realdomain.net.pseudodomain
#EOF

(mailer definition has CPpseudodomain for this to work).

Maybe it works for mailertable too, try it.

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Problem with Sendmail Mailertable

2020-06-22 Thread Andrea Brancatelli via freebsd-stable
Hello everybody, 

Disclaimer: 

I'm not very sure this is the best place to ask, in case feel free to
point me in the right direction. 

Given this, 

I have an old 10.3 machine with sendmail 8.15.2 that's been working ok
for a long time. 

We have a simple mailterable rule that looks like: 

schema31.itdbmail-lmtpd[10.33.whatever] 

That we use to forward mail in LMTP from sendmail to another machine
where dbmail is working. Everything works as supposed but today after
years of service someone realized the syntax user+mail...@schema31.it
doesn't work as expected. 

I did a bit of research and debugging and whatever and found out that
when a "+" is involved in the mail address mailertable's lookups doesn't
seem to work and the mail gets sent to local mailer. 

I tried even something fancy like 

.schema31.it dbmail-lmtpd[10.33.whatever] 

Or even the plain all catchall 

.   dbmail-lmtpd[10.33.whatever] 

But nothing works. 

Anybody ever stepped on this and got it working? 

Please, please, please, avoid the "drop sendmail and switch to
" replies, if I could I would already done it ;-) 

Thanks a lot.

-- 

Andrea Brancatelli
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"