Hello All My cents, my personal configuration: 1 Domain, PGSQL Backend, BGPD + SPAMD + SPAMPD + CLAMAV + CLAMD + DKIM
################################################## # # ## See smtpd.conf(5) for more information. # # # ################################################### # ## Queue compression queue compression queue encryption key somethingHere ################################################### # ## Define PKI # pki arya.burelli.fr key "/etc/ssl/private/arya.burelli.fr.key" pki arya.burelli.fr certificate "/etc/ssl/arya.burelli.fr.crt" ################################################### # ## Define Table # table aliases db:/etc/mail/aliases.db table vdomains postgres:/etc/mail/pgsql.conf table passwd postgres:/etc/mail/pgsql.conf table valiases postgres:/etc/mail/pgsql.conf ################################################### # ## Deliver : treatment depends from the flow (&port) # # Manage flow listen on lo0 port 10036 tag CLAM_IN # incoming email to deliver (from spampd) listen on lo0 port 10038 tag CLAM_OUT # outgoing email to DKIM listen on lo0 port 10026 tag SPAM_IN # incoming email to deliver listen on lo0 port 10030 tag DKIM_OUT # outgoing email to another MTA # # Inbound listen on lo0 port 25 listen on egress port 25 hostname arya.burelli.fr tls pki arya.burelli.fr auth-optional <passwd> listen on egress port 587 hostname arya.burelli.fr tls-require pki arya.burelli.fr auth <passwd> ################################################### # ## Allow to deliver # accept from local for local alias <aliases> deliver to mbox ################################################### # ## Relay # # Tagged mail returned from DKIM accept tagged DKIM_OUT for any relay # tagged mail returned from spampd deliver to maildir accept tagged SPAM_IN for domain <vdomains> virtual <valiases> deliver to lmtp "/var/dovecot/lmtp" rcpt-to # deliver via lmtp # tagged mail returned from clamsmtpd either send to spampd or dkimproxy_out accept tagged CLAM_IN for any relay via smtp://127.0.0.1:10025 # send to spampd accept tagged CLAM_OUT for any relay via smtp://127.0.0.1:10029 # send to dkimproxy_out # # Start here (inbound) accept from any for domain "burelli.fr" relay via smtp://127.0.0.1:10035 # to clamd via clamsmtpd_in accept from local for any relay via smtp://127.0.0.1:10037 # to clamd via clamsmtpd_out ---------------------------------- Backend pgsql /etc/mail/pgsql.conf ---------------------------------- # smtpd.conf: table users pgsql:/etc/mail/pgsql.conf conninfo host='127.0.0.1' user='anUser' password='aPassword' dbname='aDatabase' # Alias lookup query # query_alias select destination from vusers where email=$1; # # Domain lookup query # query_domain select domain from vdomains where domain=$1; # # User lookup query # #query_userinfo select 1001,1001,'/var/vmail/' from vusers where email=$1; # # Credentials lookup query # query_credentials select email, password from credentials where email=$1 and active = 'Y'; -- Olivier <[email protected]> -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
