# mailconf.py -- Configuration for mailgate.py # this is -*- Python -*- code that gets imported. # WARNING: this file contains cleartext passwords! # Install: put this file in the same directory as mailgate.py and # call it mailconf.py # mail server name to pass mail on to server = 'mail.intern.dware.ch' # mail domain we receive mail for domain = 'dware.ch' # forward mails from the local domain? forward_from_local = 0 # If your POP3 server does APOP correctly, set this to false. # See comment in mailgate.py as to when this is needed. broken_apop = 1 def any(s): """helper function to build a universal mapping list""" return [ ('*', s) ] # forwardings for dware dwa_forward = [ # Admin stuff to me, please (r'root@', 'bb'), # Weiterleitungen intern (r'CreatYves-', 'jbr'), (r'crypto-gram|livid|linux|opendvd|ovd-dev', 'bb'), (r'@golem\.de', ('bb', 'aw')), (r'win2000mag.com|ntsecurity.net|sqlmag.com', ('bb', 'bm')), (r'house66', ('bb', 'aw', 'mba', 'bud')), (r'wopr', ('bb', 'mba', 'lm', 'aw')), (r'geekinfo', 'bb'), (r'list@myucomics.com', 'mba'), ] # business account(s): always checked biz_accounts = [ # a list of (pop_host, pop_user, pop_pass, [pop_dele,] [mapping]) tuples # "pop_dele" defaults to 1 # "mapping" is a list of (pattern, local-address-part[-tuple]) tuples # Evard, Brügg ('mail.evard.ch', 'dware1', '******', 1, any('Postmaster')), ('mail.evard.ch', 'dware2', '******', 1, dwa_forward), ] del dwa_forward # user accounts; checked only if -u option given user_accounts = [ # bluewin/Ändu (nodelete) ('pop.bluewin.ch', 'andreas.weber', '******', 1, any('aw')), ('pop.ewanet.ch', 'andreas.weber', '******', 0, any('aw')), # bluewin/Stöff (nodelete) ('pop.bluewin.ch', 'christoph.balmer', '*****', 0, any('chb')), ] del any