procmail
[Top] [All Lists]

Re: using .forward

2002-08-15 00:52:41
i have a user named xyz and my domain is say test.edu. xyz has a .forward file
containg more than 100 email addresses.now what i want to do is i want
xyz(_at_)test(_dot_)edu to accept mails from domain test.edu not others.
how do i do? i am uder RHL 7.3 with sendmail 8.11.6 and procmail v3.22.

Paras,

I believe that RedHat comes with sendmail configured to use procmail by
default, so you should be able to remove the .forward file and use only
a .procmailrc file.

If you want to detect whether mail *appears* to come from test.edu and
act accordingly, you can simply do:

  :0 
  * ^From:.*\<test\.edu\>
  action for mail from test.edu goes here

  :0
  action for mail from everywhere else goes here

If either of those actions is delivery to a standard mailbox then you
need a second colon on the colon line so that procmail does locking.

That doesn't check for forgeries, though.  To do that you need sendmail
to pass through the information about where a mail is *actually* from
rather than where it *claims* to be from.  I believe that modern
versions of sendmail can do that for you, but I'm not too hot on
sendmail configuration.

Hope that's a help,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>