ChuckRock
05-21-2004, 02:58 PM
I am trying to get Dada mail to work when I send a email from an email client to a mailing list. The doc tells me I need to create/edit some file for send mail. I put the instruction below. but can we do that?
=head1 Configuring for Sendmail
This particular set of instructions takes into account that you do have
root access to the machine your using. If you do not have root access,
these instructions will not work.
make an /etc/mail/aliases file, if you don't already have one and
write in it:
# My Dada Mail List
listname: "|dada_send.pl"
where 'listname' is my list's B<shortname> that I wanted to use.
In 2.6, there are shortnames and list names, shortnames are kinda
like login names, they're supposed to be short and lowercase,
having a short name allows you to be more creative
with the listname and also allows you to change the list name, which was a
big request. Lists made with 2.5 below shortnames will be their original
list names, which might not work correctly.
You may also need to tweak the virtusertable file in sendmail.
For this example add this line:
listname@mydomain.com listname
You then have to issue this command:
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
After that, make a directory for the sendmail restricted shell, if you don't already have one:
sudo mkdir -p /usr/adm/sm.bin -m 755
In this directory, you list all the apps that you allow sendmail to run via
pipes (like in my aliases file), for more info, type in
man smrsh
in a telnet or ssh session
Make a soft link to dada_send.pl:
ln -s /Library/WebServer/CGI-Executables/dada/dada_send.pl
/usr/adm/sm.bin/dada_send.pl
Type:
newaliases
in a telnet or ssh session for sendmail to see the new alias that you
made and then restart sendmail
Make sure in your sendmail.cf file (mine was in
/etc/mail/sendmail.cf) has the alias file thingy uncommented, like this:
# location of alias file
O AliasFile=/etc/mail/aliases
Also, you want to set this to True:
# use Errors-To: header?
O UseErrorsTo=False
Sendmail sucks, don't it?
=head1 Configuring for Sendmail
This particular set of instructions takes into account that you do have
root access to the machine your using. If you do not have root access,
these instructions will not work.
make an /etc/mail/aliases file, if you don't already have one and
write in it:
# My Dada Mail List
listname: "|dada_send.pl"
where 'listname' is my list's B<shortname> that I wanted to use.
In 2.6, there are shortnames and list names, shortnames are kinda
like login names, they're supposed to be short and lowercase,
having a short name allows you to be more creative
with the listname and also allows you to change the list name, which was a
big request. Lists made with 2.5 below shortnames will be their original
list names, which might not work correctly.
You may also need to tweak the virtusertable file in sendmail.
For this example add this line:
listname@mydomain.com listname
You then have to issue this command:
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
After that, make a directory for the sendmail restricted shell, if you don't already have one:
sudo mkdir -p /usr/adm/sm.bin -m 755
In this directory, you list all the apps that you allow sendmail to run via
pipes (like in my aliases file), for more info, type in
man smrsh
in a telnet or ssh session
Make a soft link to dada_send.pl:
ln -s /Library/WebServer/CGI-Executables/dada/dada_send.pl
/usr/adm/sm.bin/dada_send.pl
Type:
newaliases
in a telnet or ssh session for sendmail to see the new alias that you
made and then restart sendmail
Make sure in your sendmail.cf file (mine was in
/etc/mail/sendmail.cf) has the alias file thingy uncommented, like this:
# location of alias file
O AliasFile=/etc/mail/aliases
Also, you want to set this to True:
# use Errors-To: header?
O UseErrorsTo=False
Sendmail sucks, don't it?