Qmail Support Forum Forum Index Qmail Support Forum
Qmail Email Server Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Want to restrict domain literals in recipient address

 
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Postfix
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 21 Jun 2005
Posts: 209

PostPosted: Tue Jul 18, 2006 5:52 pm    Post subject: Want to restrict domain literals in recipient address Reply with quote

>>> I would like to selectively restrict mail for 'domain literal'
>>> recipient addresses. E.g. allow mail to user@[10.x.y.z] while
>>> rejecting messages for all other user@[ip.ad.dr.ess].


Hi,

FYI, the solution I came up with (thanks Wietse for the pointer to
regexp_table):

in main.cf:

transport_maps =
dbm:/etc/postfix/transport,regexp:/etc/postfix/transport.regexp

and in /etc/postfix/transport.regexp:

/\[10\..*\..*\..*\]/ :
/\[.*\..*\..*\..*\]/ error:domain literals not allowed


I must admit that I heavily rely on the address syntax checking of
Postfix (e.g. illegal addresses like user@[314.270.1.2] and
user@[a.b.c.d] are rejected by the Postfix address verification
machinery) so I could stick with the rude form shown above.

/rolf
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Qmail Support Forum Forum Index -> Postfix All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


For Support - http://forums.BizHat.com

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!