Page 1 of 1

Ubuntu Install Notes

Posted: Fri Oct 19, 2007 5:44 pm
by sailbert
Ubunutu OpenEMM Install notes

/etc/hostname
openemm.domain.com

The reverse dns needs to be defined for openemm.domain.com. I had a wrong reverse dns that messed up sendmail. I had used the IP address of my old mail server and the reverse DNS was sell setup for mail.domain.com. Don't do that. Setup a proper IP to name definition.

the MX record does not need to be set for testing.
news.domain.com needs to be defined in the DNS and it must point to the IP address of openemm.domain.com. The from email address needs to be @new.domain.com. The from address for testing can also be the real IP address.of the machine @123.123.123.123

For production the MX record for news.domain.com must point to the IP address of openemm.domain.com or some mail servers will not accept the mail since there is not a proper MX record for the mail. This is a way they fight spam.


Sun Java 6 Install

apt-get install sun-java6-jdk sun-java6-bin
no configuration necessary.


Sendmail Install

apt-get install sendmail
this installs the following packages

iblockfile1
m4
procmail
rmail
sendmail-base
sendmail-bin
sendmail-cf
sensible-mda

/etc/mail/submit.mc
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: submit.mc, v 8.13.8-3 2006-12-13 14:51:49 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-msp')dnl
FEATURE(`msp')dnl


/etc/mail/sendmail.mc
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.8-3 2006-12-13 14:51:49 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
include(`/etc/mail/tls/starttls.m4')dnl
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
define(`STATUS_FILE',`/etc/mail/statistics')dnl
FEATURE(`no_default_msa')dnl
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
FEATURE(`access_db', , `skip')dnl
FEATURE(`greet_pause', `1000')dnl 1 seconds
FEATURE(`delay_checks', `friend', `n')dnl
define(`confBAD_RCPT_THROTTLE',`3')dnl
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
FEATURE(`nouucp', `reject')dnl
FEATURE(`local_procmail')dnl
FEATURE(`mailertable')dnl
FEATURE(`relay_entire_domain')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`procmail')dnl
INPUT_MAIL_FILTER(`bav',`S=unix:/home/openemm/var/run/bav.sock,F=T')dnl



Create file /etc/mail/statistics if you want to see sendmail statistics

/etc/mail/local-host-names
localhost
openemm.domain.com


/etc/mail/mailertable

news.domain.com procmail:/home/openemm/conf/bav/bav.rc



/etc/mail/relay-domains
news.domain.com


Do not put hostname (openemm.domain.com) in relay-domains file

/etc/mail/trusted-users
this file is empty. warnings appear in the log files is the file is missing.

/etc/mail/virtusertable
this file is empty. warnings appear in the log files is the file is missing.



/etc/syslog.conf

change the line:

mail.*/var/log/mail.log
to
mail.*/var/log/maillog

/etc/cron.weekly/sysklogd

change the line:

savelog -g admin -m 640 -u root -c 4 $LOG >/dev/null
to
savelog -g admin -m 644 -u root -c 4 $LOG >/dev/null

Note: the change is 640->644

chmod 644 /var/log/maillog
chmod 755 /. to fix the “/â€

wiki for documentation

Posted: Sat Oct 20, 2007 1:55 pm
by maschoff
Thanks for your extensive posting to help Ubuntu users with OpenEMM!

BTW, we run a wiki at http://www.openemm.org/wiki/OpenEMM_Wiki_Home . I think this is an even better place to post detailed info and to extend the existing install documentation (and using this forum to link to the wiki content). Thank you!