"my root directory" is awfully vague. Please read the manpage about
where ~/.procmailrc and /etc/procmailrc go.
I don't know how your ISP is setting you up with your own "root". If
it is a truely virtualized server (with your own MTA, etc,
configuration), then /etc/procmailrc is where you can put global
recipes.
If it IS NOT a virtualized server, and you really only have one USER
ACCOUNT on the server, to which all your different domains deliver to,
then what you're referring to as your root directory is probably what
the rest of the *nix world called your HOME directory.
(Keep in mind that when I say, "my root" I mean the lowest directory
level that I can access via FTP.--i.e. my "/" directory. I have no
telnet access.)
I tried putting the .procmailrc everywhere:
/.procmailrc
/mail/.procmailrc
/mail/ainscough.com/.procmailrc
/mail/ainscough.com/tom/.procmailrc
/mail/tom/.procmailrc
/etc/.procmailrc
/etc/procmailrc/.procmailrc
The first 6 directories were pre-existing. The last one I created. None
worked. This is what I did:
:0:
* ^X-Spam-Flag: YES
!spam(_at_)ainscough(_dot_)com
I did try this, but it did not seem to do anything. At least I
couldn't find a procmail.log anywhere in my directories.
LOGFILE=procmail.log
VERBOSE=yes
:0:
* ^X-Spam-Flag: YES
!spam(_at_)ainscough(_dot_)com
Can procmail be configured to use individual procmail recipes that
are domain specific without presenting a huge security risk to the
server? (i.e. So that those recipes only affect mail going to their
respective domains.)
I don't follow your issue about security risk - if all the domains are
being handled by ONE user account already, then all those domains are
being handled by ONE user account already. There are many issues with
using procmail as an MTA, which it is not, but you'll discover those
soon enough on your own. Or, you could check the manpage, where it
explicitly mentions some of them.
Basically it's an internet hosting company. They have probably 20-50
domains hosted per server. I have no procmail installation in any of my
folders, so I am assuming a global install.
If the above is not possible, he is also willing to place a recipe in
the mail procmail directory,
Uh, what directory is that? You seem to be inventing new terms here,
and they're not helping to get your concept across clearly.
Sorry, an unfortunate typo that turned out to be a related real word!!
I meant "main" procmail directory. In other words a global procmail
recipe file.
if it doesn't interfere with the main .procmailrc file. (The
drawback here is that I would have to pester him if I needed to make
changes). Can a .procmailrc file be added to the server that will
redirect mail only for ONE domain (i.e. *ainscough.com)?
If you REALLY want separate .procmailrc configurations, you should ask
the sysadm for separate user accounts, and then direct the separate
domains at them.
The bottom line is: I want all spamassassin tagged spam sent to the
domain "ainscough.com" to end up at "spam(_at_)ainscough(_dot_)com" rather than
the email address that it was addressed to. How it happens is not a big
issue.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail