Архив

Архив Февраль 2009

Конфигурация exim

28 Февраль 2009

Пример конфигурации acl_check_rcpt

MYSQL_DOMAINS = SELECT domain FROM domains WHERE domain=’${domain}’ AND (type=’LOCAL’ OR type=’VIRTUAL’)

MYSQL_ADD_WHITELIST_RECIPIENT = INSERT INTO whitelist(src_email,dst_email,record_expires) VALUES (’$sender_address’,'$local_part@$domain’,DATE_ADD(now(), INTERVAL 180 DAY))

MYSQL_UPDATE_WHITELIST_RECIPIENT  = UPDATE whitelist SET record_expires=DATE_ADD(now(), INTERVAL 180 DAY) WHERE dst_email=’$local_part@$domain’

MYSQL_DEL_WHITELIST_EXPIRED  = DELETE FROM whitelist WHERE record_expires < now()

MYSQL_WHITELIST_CHECK_SENDER   = SELECT CASE WHEN now() - record_expires > 0 THEN 2 ELSE 1 END FROM whitelist WHERE dst_email=’$sender_address’  LIMIT 1

MYSQL_WHITELIST_CHECK_RECIPIENT  = SELECT CASE WHEN now() - record_expires > 0 THEN 2 ELSE 1 END FROM whitelist WHERE dst_email=’$local_part@$domain’  LIMIT 1

Читать далее…

admin Linux ,