[Sussex] Exim4 Problems....

Richie Jarvis richie at helkit.com
Tue Jul 17 11:43:24 UTC 2007


Hi All,

I've just recently switched from Qmail to Exim4 using maildirs.  
Everything seemed ok, but I seem to be losing some mail, and exim will 
not process my .filter.  The setup is intended to accept emails from my 
virtual domains, and routes them into the Maildirs for my virtual users.

Can anyone tell me/guess what is going wrong?

Thanks in advance,

Richie

Here is the config:

#  __  __       _          ____             __ _
# |  \/  | __ _(_)_ __    / ___|___  _ __  / _(_) __ _
# | |\/| |/ _` | | '_ \  | |   / _ \| '_ \| |_| |/ _` |
# | |  | | (_| | | | | | | |__| (_) | | | |  _| | (_| |
# |_|  |_|\__,_|_|_| |_|  \____\___/|_| |_|_| |_|\__, |
#                                                |___/

# ACL checks on recepts
acl_smtp_rcpt = acl_check_rcpt

# Set the name for the HELO/EHLO header
primary_hostname = domain1

# Make sure that all hosts are checked
host_lookup = *

# Local Domains
domainlist local_domains =      domain1 : \
                                domain2 : \
                                domain3 \

# domainlist relay_domains = example2.com

hostlist relay_from_hosts = 127.0.0.1 : \
                            <localip>/24

# Qualify Domain
#  the domain to append to the sends local part if not specified
qualify_domain = domain1

timeout_frozen_after = 7d

#     _       _     _        ____                    _ _
#    / \   __| | __| |_ __  |  _ \ _____      ___ __(_) |_ ___  ___
#   / _ \ / _` |/ _` | '__| | |_) / _ \ \ /\ / / '__| | __/ _ \/ __|
#  / ___ \ (_| | (_| | |    |  _ <  __/\ V  V /| |  | | ||  __/\__ \
# /_/   \_\__,_|\__,_|_|    |_| \_\___| \_/\_/ |_|  |_|\__\___||___/
#

begin rewrite

*@*.domain1       $1 at domain1        Ffrst

#     _    ____ _
#    / \  / ___| |    ___
#   / _ \| |   | |   / __|
#  / ___ \ |___| |___\__ \
# /_/   \_\____|_____|___/
#

begin acl

# ACL for checks perfromed at rcpt time
acl_check_rcpt:

  # Accept if the source is a local SMTP (i.e. not over TCP/IP).
  accept  hosts         = 127.0.0.1

  # Deny of the local part contains @ or % or / or | or ! as they are
  # often used by spammers to circumvent relaying restrictions.
  deny    local_parts   = ^.*[@%!/|] : ^\\.

  accept hosts = +relay_from_hosts

  # Check if the connector is black listed
  deny dnslists = relays.ordb.org : dnsbl.sorbs.net

  # Accept mail to postmaster in any local domain uncondinally
  accept  local_parts   = postmaster
          domains       = +local_domains

  # Deny unless the sender address can be verified.
  require verify        = sender

  # Accept if the address is in a local domain, but only if the
  # recipient can be verified.
  accept  domains       = +local_domains
          endpass
          verify        = recipient

  # Accept if the message arrived over an authenticated connection
  accept  authenticated = *

  # Set the deny messge
  deny    message       = Relay rejected

#  ____             _
# |  _ \ ___  _   _| |_ ___ _ __ ___
# | |_) / _ \| | | | __/ _ \ '__/ __|
# |  _ < (_) | |_| | ||  __/ |  \__ \
# |_| \_\___/ \__,_|\__\___|_|  |___/
#
begin routers

virtual_user:
  driver = accept
  require_files = +/store/mail/$local_part/Maildir
  transport = dovecot_transport

notlocal:
  driver     = manualroute
  domains    = !+local_domains
  transport  = remote_smtp
  route_list = * smarthost

#  _____                                     _
# |_   _| __ __ _ _ __  ___ _ __   ___  _ __| |_ ___
#   | || '__/ _` | '_ \/ __| '_ \ / _ \| '__| __/ __|
#   | || | | (_| | | | \__ \ |_) | (_) | |  | |_\__ \
#   |_||_|  \__,_|_| |_|___/ .__/ \___/|_|   \__|___/
#                          |_|

begin transports

# Remote SMTP
#
remote_smtp:
  driver = smtp

dovecot_transport:
        driver = appendfile
        user = mail
        group = mail
        mode = 0600
        mode_fail_narrower = false
        envelope_to_add = true
        return_path_add = true
        directory = /store/mail/$local_part/Maildir
        maildir_format = true

#  ____      _
# |  _ \ ___| |_ _ __ _   _
# | |_) / _ \ __| '__| | | |
# |  _ <  __/ |_| |  | |_| |
# |_| \_\___|\__|_|   \__, |
#                     |___/

begin retry

*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h

#     _         _   _                _   _           _
#    / \  _   _| |_| |__   ___ _ __ | |_(_) ___ __ _| |_ ___  _ __ ___
#   / _ \| | | | __| '_ \ / _ \ '_ \| __| |/ __/ _` | __/ _ \| '__/ __|
#  / ___ \ |_| | |_| | | |  __/ | | | |_| | (_| (_| | || (_) | |  \__ \
# /_/   \_\__,_|\__|_| |_|\___|_| |_|\__|_|\___\__,_|\__\___/|_|  |___/
#

begin authenticators

cram:
  driver        = cram_md5
  public_name   = CRAM-MD5
  server_secret = ${if eq{$1}{username}{password}fail}
  server_set_id = $1




More information about the Sussex mailing list