OpenEMM FAQ Database

FAQ Database Home | Glossary | Favorites | Contact FAQ Database Home | Glossary | Favorites | Contact
Search the FAQ database Browse by Category
How can I install OpenEMM on Debian?
User Opinions
93% thumbs up 6% thumbs down (16 votes)

How would you rate this answer?
Helpful
Not helpful
User "minichip" provided us with this guide on how to install OpenEMM on Debian 3.1 (sarge):

"Basically I used the file INSTALL.pdf, so I will point to the commands that differ from the manual.

1.1
> apt-get update

1.2
> apt-get install mysql-server-4.1 sendmail-cf python-mysqldb

It won't work with mysql-4.0

2.
Java, nothing Debian specific here. I used 'jdk-1_5_0_08-linux-i586.bin' as it is the latest version. Every command listed in the manual worked on Debian.

3.
If no firewall is used, this part can be skipped, otherwise the user should be experienced enough to manage it and activate it on start up. So here are the basic commands which will get you started.
------------
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
------------

4.
DNS, nothing Debian specific here.

Basically you try to set up an MX record for the domain bounce.somecompany.com which points to www.somecompany.com which itself should point to an IP address or is a CNAME.

5.
Sendmail. This is my weak spot, as I never worked with it before and I'm still trying to manage the monster.
To be honest I currently have no mail boxes on the system, so I can't say if the bounce feature works 100%, but I know that the bounce management works for emails that are rejected by the foreign email server during the smtp session, so it should work with bounce emails as well.

------------
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
  changed to
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
------------

The rest stays the same as the Red Hat instructions.

6.
Suse instructions work for Debian as well.

6.1
Check /etc/syslog.conf and change the path for the mail log from /var/log/mail.log to /var/log/maillog

Open /etc/cron.weekly/sysklogd
-------------
savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
   change to
savelog -g adm -m 644 -u root -c 4 $LOG >/dev/null
-------------

Change permission for maillog

> chmod 644 /var/log/maillog

6.2
Red Hat instructions work for Debian.

6.3
Instructions work for Debian.

7.
Didn't used it as of now, but instructions should work for Debian, except the RPM part ;)

8.
Put the following in your firewall script
----------------
iptables -A PREROUTING -t nat -p tcp -i eth+ --dport 80 -j REDIRECT --to-port 8080
----------------
"
End of minichip´s guide.

In case you have further questions you may find him on the OpenEMM support forums.

Visitor Comments
  1. Comment #1 (Posted by Benoit )
    Make sure sendmail is not being started by the system rc scripts. OpenEMM itself will start sendmail and point it to it's own spool directory. (took me hours to find out)
  2. Comment #2 (Posted by Benoit )
    You must also edit mailer.sh to have the sendmail PID files put to the right place. In Debian Sendmail runs as root but has no permission to write to user homes. Fix: Edit mailer.sh and replace the right path. For Debian it should be -OPidFile=/var/run/sendmail/mta/
Related Questions
No related questions were found.
Attachments
No attachments were found.

SourceForge.net Logo Back to OpenEMM Homepage