[vexim] Vexim + exim4 (multi-file config)

Pleiades pleiades at pleiadesdesign.com
Tue Feb 24 13:23:06 PST 2009


I'm currently trying (very hard) to get a multi-file config version of
Exim4/vexim functional.  I have the system receiving mail and even tagging
spam as spam.  YAY!

However, I'm having one hell of a time getting the ACL sections working.
Specifically the RBL lists and what not.

I was wondering if someone could lend me a hand with this.  I'm kind of
hoping that once the multi-file config is working I can toss up a quick copy
of it somewhere so if other people would like to use it rather than the
single file config it's available.

I took the following files (I believe they're included in the vexim
structure):

vexim-acl-check-content.conf
vexim-acl-check-helo.conf
vexim-acl-check-rcpt.conf
vexim-acl-check-spf.conf

And moved them into exim4/conf.d/acl as follows:

00_exim4-config_header      20_exim4-config_local_deny_exceptions
10_vexim-acl-check-content  30_exim4-config_check_mail
10_vexim-acl-check-helo     30_exim4-config_check_rcpt
10_vexim-acl-check-rcpt     40_exim4-config_check_data
10_vexim-acl-check-spf

I put the main SQL connection information for vexim in 00_vexim_domains in
exim4/conf.d/main:

00_vexim_domains                   03_exim4-config_tlsoptions
01_exim4-config_listmacrosdefs     15_sa-exim_plugin_path
02_exim4-config_options            90_exim4-config_log_selector
02_exim4-config_options.dpkg-dist

Then I moved in the vexim files listed below to exim4/conf.d/router:

00_exim4-config_header           500_exim4-config_hubuser
100_exim4-config_domain_literal  600_exim4-config_userforward
150_exim4-config_hubbed_hosts    700_exim4-config_procmail
200_exim4-config_primary         800_exim4-config_maildrop
250_vexim-virtual_domains        850_exim4-config_lowuid
255_vexim-group-router           900_exim4-config_local_user
300_exim4-config_real_local      mmm_mail4root
400_exim4-config_system_aliases

Lastly I moved the delivery code into the relevant file below located in
exim4/conf.d/transport:

00_exim4-config_header            30_exim4-config_mail_spool
10_exim4-config_transport-macros  30_exim4-config_procmail_pipe
30_exim4-config_address_file      30_exim4-config_remote_smtp
30_exim4-config_address_pipe      30_exim4-config_remote_smtp_smarthost
30_exim4-config_address_reply     30_vexim_virtual_delivery
30_exim4-config_maildir_home      35_exim4-config_address_directory
30_exim4-config_maildrop_pipe

With these files in these locations I get the following:

cygnus:/etc/exim4/conf.d# /etc/init.d/exim4 restart
Stopping MTA for restart:2009-02-24 15:09:01 Exim configuration error in
line 244 of /var/lib/exim4/config.autogenerated.tmp:
  missing or malformed ACL name
Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not
installing
/var/lib/exim4/config.autogenerated.tmp to
/var/lib/exim4/config.autogenerated

Lines in this file around that area are as follows:

.ifdef MAIN_LOG_SELECTOR
log_selector = MAIN_LOG_SELECTOR
.endif

begin acl

  deny  senders         = :
        hosts           = ! +relay_from_hosts
        !acl            = spf_from_acl
        message         = Your sender is not permitted (read spf.pobox.com)

  deny  message         = This message contains a MIME error
($demime_reason)
        demime          = *
        condition       = ${if >{$demime_errorlevel}{2}{1}{0}}

  deny  message         = This message contains an unwanted file extension
($found_extension)
        demime          = scr:vbs:bat:lnk:pif:bz2


Everything seems to be working good except for the ACL sections.  Because
the files are a bit big and cumbersome I didn't want to just spam the list
with them.  I wanted to give a brief overview of what I wanted to do and
what I've done with files to see if that helps with a basis.  If someone
wants/needs to have a look at the files in order to help, I'll be more than
happy to provide such access or even zip/link the files so you can see
what's going on.

Any help will be greatly appreciated!


~P





More information about the Vexim mailing list