PDA

View Full Version : Trying to get Dada Mail to work.


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?

James99
05-21-2004, 06:57 PM
Create an email fowarder in your cpanel. Make it look like:

username @ yourdomain.com -> |/home/username/path/to/dada_send.pl

That should do the trick

ChuckRock
05-21-2004, 07:35 PM
Tried that.

Here is what I used
|/home/eastpark/cgi-bin/dada/extensions/dada_send.pl

But this is what I get

pipe to |/home/eastpark/cgi-bin/dada/extensions/dada_send.pl
generated by listtesting@eastpark.org
local delivery failed

James99
05-21-2004, 07:54 PM
was dada_send.pl uploaded in ascii mode and has the correct chmod?

ChuckRock
05-22-2004, 11:35 AM
Well, I used WinSCP it's a ssh client and I have never had any problems with in the past. I gave it 755.

James99
05-22-2004, 03:25 PM
I think I see the problem. Shouldn't it be

|/home/eastpark/public_html/cgi-bin/dada/extensions/dada_send.pl
instead of
|/home/eastpark/cgi-bin/dada/extensions/dada_send.pl

ChuckRock
05-24-2004, 09:03 AM
duh, that was a bone head thing to miss. Well the script is now working thanks. However when some one send a message to the forwarded email address for the list. The mail get past on to everyone on the list, but they get an error message sent back to them "Mail delivery failed: returning message to sender".

Here is what is in the message sent back. Any ideas?


This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/home/eastpark/public_html/cgi-bin/dada/extensions/dada_send.pl
generated by testing@eastpark.org

The following text was generated during the delivery attempt:

------ pipe to |/home/eastpark/public_html/cgi-bin/dada/extensions/dada_send.pl
generated by testing@eastpark.org ------

Useless use of string in void context at /home/eastpark/public_html/cgi-bin/dada/DADA/App/Guts.pm line 484.
Use of uninitialized value in substitution (s///) at /home/eastpark/public_html/cgi-bin/dada/extensions/dada_send.pl line 302.
Use of uninitialized value in substitution (s///) at /home/eastpark/public_html/cgi-bin/dada/extensions/dada_send.pl line 303.
Use of uninitialized value in concatenation (.) or string at /home/eastpark/public_html/cgi-bin/dada/extensions/dada_send.pl line 308.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 659.
Use of uninitialized value in numeric gt (>) at /home/eastpark/public_html/cgi-bin/dada/DADA/MailingList/Subscribers/PlainText.pm line 913, <LISTFILE> line 1.
Use of uninitialized value in numeric gt (>) at /home/eastpark/public_html/cgi-bin/dada/DADA/MailingList/Subscribers/PlainText.pm line 913, <LISTFILE> line 2.
Use of uninitialized value in numeric gt (>) at /home/eastpark/public_html/cgi-bin/dada/DADA/MailingList/Subscribers/PlainText.pm line 913, <LISTFILE> line 3.
Use of uninitialized value in numeric gt (>) at /home/eastpark/public_html/cgi-bin/dada/DADA/MailingList/Subscribers/PlainText.pm line 935.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 499, <MAILLIST> line 1.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 595, <MAILLIST> line 1.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 499, <MAILLIST> line 2.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 595, <MAILLIST> line 2.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 499, <MAILLIST> line 3.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 595, <MAILLIST> line 3.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 499, <MAILLIST> line 4.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 595, <MAILLIST> line 4.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 499, <MAILLIST> line 4.
Use of uninitialized value in numeric eq (==) at /home/eastpark/public_html/cgi-bin/dada/DADA/Mail/Send.pm line 595, <MAILLIST> line 4.

------ This is a copy of the message, including all the headers. ------

James99
05-24-2004, 03:38 PM
I have no clue with that. Perl isn't my specialty. Hopefully someone else will be able to give you a hand with it :)

ChuckRock
05-24-2004, 03:46 PM
No problem.

I also found out that if you use the same email that you are forwarding to the list as the list owner it create a loop that dada does not catch like it says it will.