PDA

View Full Version : Exim4


neemers
11th May 2007, 02:48
Hello all!

I have an issue i hope someone can help me with.

I have a script that calls for a mail program. I used to use sendmail in the script which worked great. I had to move the script to a new server which is running exim4. Now the script has to have parameters set, like where to find the mail program, so when ${MAIL} is called it uses the program path, then uses functions like -s mail.yada.com -u acox@yada.com and so forth. But I do not know what program nor path to set in the script and what functions to set, like -s, -u, ect.

Now when I'm on the server I can do root@blah:mail because I have mailutils installed.

Does anyone know what I could do here? Any help would be much appreciated.

Thank you!

falko
12th May 2007, 18:58
Normally mail server such as Postfix and Exim are compatible with Sendmail, which means they come with a binary called sendmail so that your scripts still run.
Run
which sendmail
If there's an output, your scripts should run without changes.