|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello,
We have a problem using the access db. We want to reject all mail with a From: address of @domain.com unless it is recieved from host 1.2.3.4. Have tried this: Connect:1.2.3.4 RELAY From:domain.com REJECT but it is rejected with this: ruleset=check_mail, arg1=test@domain.com, relay=[1.2.3.4], reject=550 5.7.1 test@domain.com... Access denied I believe this is because the check_mail ruleset is called after the check_relay one and the fact you pass the first doesn't excuse you from having to pass the second. Anyone know how we can resolve this? Cheers, Dave |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Dave H wrote: > We have a problem using the access db. We want to reject all mail with a > From: address of @domain.com unless it is recieved from host 1.2.3.4. Have > tried this: > > Connect:1.2.3.4 RELAY > From:domain.com REJECT > > but it is rejected with this: > > ruleset=check_mail, arg1=test@domain.com, relay=[1.2.3.4], reject=550 5.7.1 > test@domain.com... Access denied > > I believe this is because the check_mail ruleset is called after the > check_relay one and the fact you pass the first doesn't excuse you from > having to pass the second. > > Anyone know how we can resolve this? Why not use: Connect:1.2.3.4 RELAY Connect:domain.com REJECT or with from on both lines. -- René Berber |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
In article <1158886826.886583.233980@e3g2000cwe.googlegroups. com>,
"René Berber" <rberber@mailandnews.com> wrote: > Dave H wrote: > > > We have a problem using the access db. We want to reject all mail with a > > From: address of @domain.com unless it is recieved from host 1.2.3.4. Have > > tried this: > > > > Connect:1.2.3.4 RELAY > > From:domain.com REJECT > > > > but it is rejected with this: > > > > ruleset=check_mail, arg1=test@domain.com, relay=[1.2.3.4], reject=550 5.7.1 > > test@domain.com... Access denied > > > > I believe this is because the check_mail ruleset is called after the > > check_relay one and the fact you pass the first doesn't excuse you from > > having to pass the second. > > > > Anyone know how we can resolve this? > > Why not use: > > Connect:1.2.3.4 RELAY > Connect:domain.com REJECT > > or with from on both lines. 'Connect:' entries refer to the IP address or hostname of the SMTP connection. 'From:' entries refer to the SMTP envelope's sender e-mail address. Those are not necessarily related to each other. -- Now where did I hide that website... |
|
![]() |
| Outils de la discussion | |
|
|