Server IP : 85.214.239.14 / Your IP : 18.226.186.153 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /srv/modoboa/env/lib64/python3.5/site-packages/modoboa/relaydomains/ |
Upload File : |
"""Map file definitions for postfix.""" class RelayDomainsMap(object): """Map file to list all relay domains.""" filename = "sql-relaydomains.cf" mysql = ( "SELECT name FROM admin_domain " "WHERE name='%s' AND type='relaydomain' AND enabled=1" ) postgres = ( "SELECT name FROM admin_domain " "WHERE name='%s' AND type='relaydomain' AND enabled" ) sqlite = ( "SELECT name FROM admin_domain " "WHERE name='%s' AND type='relaydomain' AND enabled=1" ) class SplitedDomainsTransportMap(object): """A transport map for splited domains. (ie. ones with both local and remote mailboxes) """ filename = "sql-spliteddomains-transport.cf" mysql = ( "SELECT 'lmtp:unix:private/dovecot-lmtp' " "FROM admin_domain AS dom " "INNER JOIN admin_mailbox AS mbox ON dom.id=mbox.domain_id " "INNER JOIN core_user AS u ON mbox.user_id=u.id " "WHERE dom.type='relaydomain' AND dom.enabled=1 " "AND dom.name='%d' AND u.is_active=1 " "AND mbox.address='%u'" ) postgres = ( "SELECT 'lmtp:unix:private/dovecot-lmtp' " "FROM admin_domain AS dom " "INNER JOIN admin_mailbox AS mbox ON dom.id=mbox.domain_id " "INNER JOIN core_user AS u ON mbox.user_id=u.id " "WHERE dom.type='relaydomain' AND dom.enabled " "AND dom.name='%d' AND u.is_active " "AND mbox.address='%u'" ) sqlite = ( "SELECT 'lmtp:unix:private/dovecot-lmtp' " "FROM admin_domain AS dom " "INNER JOIN admin_mailbox AS mbox ON dom.id=mbox.domain_id " "INNER JOIN core_user AS u ON mbox.user_id=u.id " "WHERE dom.type='relaydomain' AND dom.enabled=1 " "AND dom.name='%d' AND u.is_active=1 " "AND mbox.address='%u'" ) class RelayRecipientVerification(object): """A map file to enable recipient verification.""" filename = "sql-relay-recipient-verification.cf" mysql = ( "SELECT action FROM relaydomains_recipientaccess WHERE pattern='%d'" ) postgres = ( "SELECT action FROM relaydomains_recipientaccess WHERE pattern='%d'" ) sqlite = ( "SELECT action FROM relaydomains_recipientaccess WHERE pattern='%d'" )