Paweł Tęcza wrote:
> Sam Varshavchik pisze:
>> Michelle Konzack writes:
>>
>>>> Also, you are missing all the *.dist files. Rather than fix this mess by
>>>> hand, one file at a time, you should just reinstall. It'll probably be
>>>> faster than just trying to fix this disaster, one brick at a time.
>>> There are no *.dist files on a Debian System... ;-)
>> Well, I have nothing else to suggest. I only know how Courier should be
>> installed, according to the default installation script. You'll have to wait
>> until to hear from someone who knows better how things are done on Debian.
>
> Hi Sam,
>
> On Debian <filename>.dist files are installed simply as <filename>.
> For example we have /etc/courier/imapd config file instead of
> /etc/courier/imapd.dist.
Just for the record, with some modifications as shown below.
Any comments are appreciated.
--snip--
# Adapt configuration files to our needs
# - security: disable EXPN and VRFY
perl -i -pe 's/^BOFHNO(EXPN|VRFY)=0/BOFHNO$$1=1/'
$(BUILD)/etc/courier/esmtpd
# - start daemon by default
perl -i -pe 's/^ESMTPDSTART=NO/ESMTPDSTART=YES/;'
$(BUILD)/etc/courier/esmtpd
# - fix PID location
perl -i -pe 's%^PIDFILE=.*%PIDFILE=/var/run/courier/esmtpd.pid%'
$(BUILD)/etc/courier/esmtpd
perl -i -pe 's%^PIDFILE=.*%PIDFILE=/var/run/courier/esmtpd-msa.pid%'
$(BUILD)/etc/courier/esmtpd-msa
perl -i -pe 's%^PORT=.*%PORT=/var/run/courier/webmlmd%'
$(BUILD)/etc/courier/webmlmrc
# - fix location for certificate
perl -i -pe 's%^TLS_CERTFILE=.*%TLS_CERTFILE=/etc/courier/esmtpd.pem%'
$(BUILD)/etc/courier/esmtpd
# - start daemons by default
perl -i -pe 's/^POP3DSTART=NO/POP3DSTART=YES/'
$(BUILD)/etc/courier/pop3d
perl -i -pe 's/^MAXPERIP=\d+/MAXPERIP=20/;
s/^IMAPDSTART=NO/IMAPDSTART=YES/' $(BUILD)/etc/courier/imapd
# - change authentification default settings
perl -i -pe 's/^authmodulelist=".*?"/authmodulelist="authpam"/'
$(BUILD)/etc/courier/authdaemonrc
# - change default LDAP server
perl -i -pe 's/^(LDAP_SERVER\s+)ldap.example.com/$$1localhost/'
$(BUILD)/etc/courier/authldaprc $(BUILD)/etc/courier/ldapaliasrc
# - change default MySQL server
perl -i -pe
's/^(MYSQL_SERVER\s+)mysql.example.com/$$1localhost/;s%^(#?\s*MYSQL_SOCKET\s+)/.*%$$1/var/run/mysqld/mysqld.sock%'
$(BUILD)/etc/courier/authmysqlrc
perl -i -pe 's/^POP3DSSLSTART=NO/POP3DSSLSTART=YES/'
$(BUILD)/etc/courier/pop3d-ssl
perl -i -pe 's%^TLS_CERTFILE=.*%TLS_CERTFILE=/etc/courier/pop3d.pem%'
$(BUILD)/etc/courier/pop3d-ssl
perl -i -pe 's/^IMAPDSSLSTART=NO/IMAPDSSLSTART=YES/'
$(BUILD)/etc/courier/imapd-ssl
perl -i -pe 's%^TLS_CERTFILE=.*%TLS_CERTFILE=/etc/courier/imapd.pem%'
$(BUILD)/etc/courier/imapd-ssl
perl -i -pe
's%^SSLPIDFILE=.*%SSLPIDFILE=/var/run/courier/esmtpd-ssl.pid%'
$(BUILD)/etc/courier/esmtpd-ssl
perl -i -pe 's/^ESMTPDSSLSTART=NO/ESMTPDSSLSTART=YES/'
$(BUILD)/etc/courier/esmtpd-ssl
perl -i -pe 's%^TLS_CERTFILE=.*%TLS_CERTFILE=/etc/courier/esmtpd.pem%'
$(BUILD)/etc/courier/esmtpd-ssl
# - ensure compatibility which common MUA's
perl -i -pe 's%^TLS_PROTOCOL=SSL3%TLS_PROTOCOL=SSL23%'
$(BUILD)/etc/courier/*-ssl
--snap--
Regards
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users