List Info

Thread: Re: How to filter unknown user using Aliases file ?




Re: How to filter unknown user using Aliases file ?
country flaguser name
United Kingdom
2007-09-05 12:07:25
Mike;

Use Postfix verify service for virtually no setup, plus the
benefit that you
can have multiple domains verified on different servers
automatically using
the destination from the transport map.

In main.cf add reject_unverified_recipient to the end of
your
smtpd_recipient_restrictions

Add unverified_recipient_reject_code = 450 in the same file
and when you're
happy it's working Ok change to 550, that way you will only
get a temporary
reject if things go wrong. 

Make sure master.cf has the following line, I thinks it's in
there by
default.
verify    unix  -       -       n       -       1      
verify

I also use the following in main.cf, the address_verify_map
= is blank as I
don't use persistent storage of the verify data.

address_verify_map =
address_verify_positive_expire_time = 14d
address_verify_positive_refresh_time = 7d
address_verify_negative_cache = yes
address_verify_negative_expire_time = 2d
address_verify_negative_refresh_time = 3h


Cheers
Mike


-----Original Message-----
From: maia-users-bouncesrenaissoft.com
[mailto:maia-users-bouncesrenaissoft.com] On Behalf
Of Jeffrey Schilperoord
Sent: 13 August 2007 17:39
To: Mike Abraham; Maia-usersrenaissoft.com
Subject: Re: [Maia-users] How to filter unknown user using
Aliases file ?

We are testing atm with a similar situation in wich maia is
in front of
our exchange server. I use ldap to lookup if a email address
exists on
our exchange server:

/usr/local/etc/postfix/main.cf:

relay_recipient_maps =
    ldap:/usr/local/etc/postfix/ldap_relay_recipient_maps.cf


Is added to the main.cf file. I didn't had to change the
master.cf file
to make this work. So maybe that's an answer to your first
question 
Postfix denies the mail when it connects, if the email
address isn't
matched through ldap . 

Jeffrey Schilperoord

-----Oorspronkelijk bericht-----
Van: maia-users-bouncesrenaissoft.com
[mailto:maia-users-bouncesrenaissoft.com] Namens Mike
Abraham
Verzonden: maandag 13 augustus 2007 18:15
Aan: Maia-usersrenaissoft.com
Onderwerp: [Maia-users] How to filter unknown user using
Aliases file ?

Can someone help on this one ?

We have concluded our pilot, and decided to go to
production, but I've
encountered a problem with rejecting unverified recipients.

I have read everything I can on PostFix (& Maia's
Archived List) on how
to reject Unknown user, but I'm a bit confused.

1) If my settings go into main.cf, how does that apply to
the MTA-RX ? 
	Doesn't it have to be applied in Master.cf to determine
with MTA
will reject ?


2) Is this the command I use if I want to reference my
Aliases file ?

 	/etc/postfix/main.cf
   	 local_recipient_maps = proxy:unix:passwd.byname,
$alias_maps,


3) We always use the aliases file to determine final
destination. It's
always been in the format below - is this ok for a reference
file ?
The documents say it will ignore anything on the right, but
will it
ignore the : ?

student1:		student1server1
student2:		student2server2


Thanks everyone.

Mike Abraham
Conestoga College of Applied Arts & Technology



_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )