"JunJun R. Rosales" <[EMAIL PROTECTED]> writes:

> i got confuse between those two.... ~/.tmda & /etc/tmdarc

~/.tmda is a directory, /etc/tmdarc is a file.

/etc/tmdarc can be used for any settings that apply to all users on
your system.

~/.tmda/config can be used for any settings that are different for
each user.

You can put any of TMDA's configuration settings in either file.  The
list of all configuration variables can be found at

http://tmda.net/config-vars.html

For a normal Unix setup, where each user logs in to the system and has
his or her own home directory, the default settings will usually
work.  Depending on which MTA (mail server software) you are using,
you may need to set the MAIL_TRANSFER_AGENT, RECIPIENT_DELIMITER and
DELIVERY variables.

> i want to use tmda as a system-wide so i still need to have ~/.tmda 
> and /etc/tmdarc ?

You don't need either of them, if the default settings work for you.
If you are running a mail server other than qmail you will need to set
at least the three variables I mentioned above.

You will probably want to have a ~/.tmda/config for each user.

> what should be the contents of /etc/tmdarc ?

MAIL_TRANSFER_AGENT and RECIPIENT_DELIMITER are good things to put in
the system-wide /etc/tmdarc, since they will be the same for every
user on your system.

> and i'm also confuse between ~/.procmailrc and ~/.procmailrc-tmda
> . what is the differnce between ~/.procmailrc and ~/.procmailrc-tmda
> ?

Do you even need to use procmail?  What MTA are you running?  If you
are running Sendmail, then you need to run tmda-filter from procmail.
You would use the ~/.procmailrc file to do that, since ~/.procmailrc
is what procmail looks for when it delivers mail.

Once TMDA has approved the mail, it needs to deliver it.  You can use
TMDA itself to deliver the mail (set DELIVERY to point to an mbox or a
maildir, for example) or you can give the message to procmail again if
you want to use procmail to sort your mail and deliver it to different
mailboxes.  If you choose to use procmail *after* TMDA, you need to
use a different dot-procmailrc file; if you use ~/.procmailrc it will
just call TMDA again and again and again.  You can name the second
dot-procmailrc file anything you want; the documentation suggests
~/.procmailrc-tmda.

Unless you have a very good reason to do final mail delivery using
procmail, you might want to avoid it and just use TMDA for that.  If
you're running any MTA other than Sendmail, you don't need procmail at
all.

> do the contents of ~/.tmda/config is the same also in 
> the /etc/tmdarc/config ?

/etc/tmdarc is a file, not a directory and you can put the same
settings in either, but remember that /etc/tmdarc gets used for every
user on the system; ~/.tmda/config is for each user.


Tim

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to