Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 09, 2007 12:51 am 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Hi,

Would it be possible to configure postfix to accept email from only 1 domain for 1 virtual mailbox and leave the rest alone?

Say that my public email address used to accept payments from PayPal is paypal@mydomain.com

Now, bots get to conveniently troll websites for the email address in the Buy Now forms, etc and proceed to hit me with tons of spam.

The only emails I wish to have accepted for delivery to this address are from paypal.com and nobody else.

Now, I have other virtual accounts on my postfix server so how would I go about doing this without affecting delivery to my other virtual addresses?

Thanks!!


Top
   
 Post subject:
PostPosted: Tue Jul 10, 2007 3:39 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
http://www.postfix.org/RESTRICTION_CLASS_README.html

The example of protecting an e-mail list should do what you want, if I understand correctly.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Tue Jul 10, 2007 9:48 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
Hmmm. Maybe I'm just daft but from what I can see, that text describes making a global restrictive policy.

I just want to restrict people from sending mail to 1 address out of many virtual ones.

so let's say I have:

v@y.com
w@y.com
x@y.com
y@y.com
z@y.com

But if anybody tries to send email to y@y.com, reject it outright if it's not from some@domain.com

I didn't see any way to do that from what I read. Or am I missing something?

Thanks


Top
   
 Post subject:
PostPosted: Wed Jul 11, 2007 12:41 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Restriction classes should do it - it's a very specific application of what was designed as a general method. The authorisation is based on the sender SMTP envelope address, so it can be spoofed.

Put in /etc/postfix/main.cf:
Code:
smtpd_recipient_restrictions = 
check_recipient_access hash:/etc/postfix/protected_destinations
...the usual stuff...

smtpd_restriction_classes = authorised_senders
authorised_senders = check_sender_access hash:/etc/postfix/OK_senders, reject


Put in /etc/postfix/protected_destinations:
Code:
y@y.com   authorised_senders 


Put in /etc/postfix/OK_senders:
Code:
some@domain.com   OK 

_________________
/ Peter


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group