....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Martin Svensson (martin@stabilt.se)
Date: Wed Dec 15 2004 - 17:36:22 EST


Ruben,

This is related to Sendmail, and not Amavis in particular. Try
comp.mail.sendmail or some other Sendmail users list.

To try to help you anyways I think that you need to write a couple rules
of your own to accomplish this, but I could be wrong and I'm certainly
not a sendmail guru.

As I said, it might make your server burn up right after sendmail
rejected all your emails, deleted the queue and all that.. Be warned :-)

LOCAL_RULESETS
SLocal_check_rcpt
R$* $: $&f $| $&{client_addr}
R restricted @ mydomain.com $| 192.168.0.120 $#ok
R restricted @ mydomain.com $| $-.$-.$-.$- $#<some error syntax, look it up>
R $* @ mydomain.com $| $-.$-.$-.$- $#ok

If it works (I'm not able to test it atm, and I don't have the big bat
book here either), it will give a "relaying denied" error back to anyone
who tries to send mail to restricted@mydomain.com EXCEPT from the source
192.168.0.120.

Good luck!
//Martin

Ruben Sanchez wrote:
> I'm sorry if something is not understood well , but my english is not
> very good. :-(
>
> Since I can do with amavis so that the mail directed to a single
> direction happens if subred in concrete comes from one?
> without it affects the rest of the directions
>
> it is possible to be this directly with sendmail?
>
> example:
>
> mail to: restricted@mydomain.com from 192.168.0.120
> (internal subnet) OK
> mail to: restricted@mydomain.com from 192.168.1.120
> (external subnet) DENY
> mail to: restricted@mydomain.com from somewhere
> DENY
>
>
> mail to: somebody@mydomain.com from
> 192.168.0.120 OK
> mail to: somebody@mydomain.com from 192.168.1.120
> OK
> mail to: somebody@mydomain.com from somewhere
> OK
>
>
> I have proven with sendmail using this /etc/mail/access but it does not go:
>
> localhost.localdomain RELAY
> localhost RELAY
> 127.0.0.1 RELAY
> 192.168.0.120 RELAY
> to:restricted@ ERROR:"550 You are not allowed to send mail to
> this user from this location"
>
> thanks.
>
> Salu2
>
>
>
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.