[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Postfix and relaying




Any postfix hackers on here? :) A quick question...is it possible to
configure postfix to do selective relaying based on the recipient *address*
(not domain). Even better if I can restrict it to a sender as well...

eg, There is a user, Bob, and his PC, bobspc. He wants to send an email to
someone else, alice [at] somewhere-else.com, but isn't authorised to send email
generally. He is however authorised to send email to alice [at] somewhere-
else.com. But only alice. He isn't auth'd to email alicesmanager [at] somewhere-
else.com

So I'd like to be able to configure postifx to do one of:
a) Allow any person to send email to alice [at] somewhere-else.com ONLY.
b) Restrict it so only bob [at] mycompany.com can send email to alice [at] somewhere-
else.com (sender-based relaying)
or...
c) Restrict it so only bobspc can send email to alice [at] somewhere-else.com
(relay based on IP/address of sending machine)

(b) or (c) would be preferred, but (a)'s acceptable. I just can't see
anything that makes this possible. So suggestions on a postcard :)

I have postfix set up at the moment doing generic relaying for a few machines
to the general internet, but I'd like to have the possiblity of relaying by
recipient address as well. I just can't see if its possible or how to do it.

Cheers,

Chris...

-- 
\ Chris Johnson                 \
 \ cej [at] nightwolf.org.uk          \
  \ http://cej.nightwolf.org.uk/  ~-----------------------------------+
   \ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____



___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.