-# $Id: pmac,v 1.3 2007/11/25 17:32:18 dwmw2 Exp $
+# $Id: pmac,v 1.4 2008/06/09 11:33:27 dwmw2 Exp $
-.ifndef CONFDIR
-CONFDIR=/etc/exim
-.endif
-
-CLUSTER=CONFDIR/infradead
+primary_hostname = pmac.infradead.org
-domainlist extra_local_domains =
+# Listen only on localhost
+local_interfaces = <; 127.0.0.1
-hostlist relay_hosts = localhost
-primary_hostname = pmac.infradead.org
+queue_list_requires_admin = false
qualify_domain = infradead.org
-.include CONFDIR/master
+trusted_users = mail
+never_users = root
+
+gecos_pattern = ^([^,:]*)
+gecos_name = $1
+
+log_selector = \
+ +address_rewrite \
+ +smtp_confirmation \
+ +smtp_protocol_error \
+ +smtp_syntax_error \
+ +sender_on_delivery
+
+smtp_return_error_details = true
+accept_8bitmime
+tls_advertise_hosts = *
+tls_certificate = /usr/share/ssl/certs/exim.pem
+tls_privatekey = /usr/share/ssl/certs/exim.pem
+
+received_header_text = "Received: \
+ ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
+ {${if def:sender_ident {from ${sender_ident} }}\
+ ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
+ by ${primary_hostname} \
+ ${if def:received_protocol {with ${received_protocol}}} \
+ (Exim ${version_number} #${compile_number} (Red Hat Linux))\n\t\
+ id ${message_id}\
+ ${if def:received_for {\n\tfor $received_for}}"
+
+acl_smtp_rcpt = accept
+acl_smtp_data = check_content_shinybook
+
+freeze_tell = postmaster@infradead.org
+allow_domain_literals
+
+ignore_bounce_errors_after = 3d
+timeout_frozen_after = 14d
+
+.include /etc/exim/authclient
+
+begin acl
+
+check_content_shinybook:
+ warn condition = ${if !def:h_Message-ID: {1}}
+ message = Message-ID: <E$message_id@$primary_hostname>
+ warn condition = ${if !def:h_Date: {1}}
+ message = Date: $tod_full
+ warn condition = ${if !def:h_From: {1}}
+ message = From: ${if eq{$sender_address}{} \
+ {MAILER-DAEMON <postmaster@infradead.org>}\
+ {$sender_address}}
+ accept
+
+begin authenticators
+
+infradead_auth:
+ driver = cram_md5
+ public_name = CRAM-MD5
+ client_name = SMTPAUTH_USERNAME
+ client_secret = SMTPAUTH_PASSWORD
+
+begin routers
+
+#redhat_internal:
+# driver = dnslookup
+# transport = remote_smtp
+# domains = redhat.com : *.redhat.com
+
+everything:
+ driver = manualroute
+ route_data = smtpauth.infradead.org
+ transport = remote_msa
+
+begin transports
+
+remote_smtp:
+ driver = smtp
+
+remote_msa:
+ driver = smtp
+ port = 587
+ hosts_require_auth = *