Jump to content

Recommended Posts

Posted

I'm using MojoMail 2.8.9, and it has a program that will take an e-mail message and send it out to the addresses on the distribution list. That way I just send a message to an e-mail address instead of using the web-interface to send a message.

 

Anyway, is it possible to route an e-mail address to a file instead of a mailbox or other address? Thanks.

Posted
11/24/03

 

Dada Mail 2.8.10 has been released! Dada Mail (formerly Mojo Mail) has been updated with many bug fixes and features. With this new release, a brand new support site has also been unveiled.

 

Appears there is a newer release. You can visit mojo.skazat.com for more info.

 

I'm a bit confused by your question though. Not sure I understand the whole concept. What would be the content of that file, the email content? Where would that file be created, on your hosting space or pc? What is the goal of having the file created?

Posted
11/24/03

 

Dada Mail 2.8.10 has been released! Dada Mail (formerly Mojo Mail) has been updated with many bug fixes and features. With this new release, a brand new support site has also been unveiled.

 

Appears there is a newer release. You can visit mojo.skazat.com for more info.

 

I'm a bit confused by your question though. Not sure I understand the whole concept. What would be the content of that file, the email content? Where would that file be created, on your hosting space or pc? What is the goal of having the file created?

I saw that a new version was out. Looks mostly like a name change, so I'm probably not going to bother upgrading for a while unless there is a security fix I'm not aware of.

 

No file is actually created anywhere. There is a component of Mojo (now Dada), that will receive e-mails and send them out to the distribution list. The file is called mojo_send.pl. All I need to do is create an e-mail address that sends the contents of the message to mojo_send.pl instead of a mailbox. Below is the documentation on this feature, and how to set it up through Sendmail. Is this something I can do?

 

---------------------------

 

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 Mojo Mail List
       listname: "|mojo_send.pl"

where 'listname' is my list's 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@**** 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 mojo_send.pl:

>       ln -s /Library/WebServer/CGI-Executables/mojo/mojo_send.pl
       /usr/adm/sm.bin/mojo_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?

 

---------------------------

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...