Portál AbcLinuxu, 19. července 2025 15:01
require "fileinto"; if header :contains "subject" "faktura" { fileinto "Faktury"; }Ale kdyz si poslu mail s predmetem faktura tak normalne dorazi do prijate posti jako by nebylo nic nastaveno, zadna chyba, nic. Nevite nikdo jak s tim hnout? Diky moc za rady, prikladam co jsem pridal do dovecot.conf:
listen = * first_valid_uid = 200 last_valid_uid = 200 first_valid_gid = 200 last_valid_gid = 200 disable_plaintext_auth = no mail_location = maildir:/var/www/%d/mails/%n protocol lda { # Space separated list of plugins to load (default is global mail_plugins). mail_plugins = $mail_plugins sieve postmaster_address = postmaster@domain.cz hostname = xxxx } log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot-info.log # Authentication for passwd-file users. Included from auth.conf. # # passwd-like file with specified location. # doc/wiki/AuthDatabase.PasswdFile.txt passdb { driver = passwd-file args = scheme=PLAIN username_format=%u /etc/dovecot/users } userdb { driver = static args = uid=vmail gid=vmail home=/var/www/%d/mails/%u } service auth { unix_listener auth-userdb { mode = 0600 user = vmail group = vmail } } # sieve plugin { # The path to the user's main active script. If ManageSieve is used, this the # location of the symbolic link controlled by ManageSieve. sieve = /var/www/%d/mails/%n/dovecot.sieve }
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.