E-Mail Konfiguration · 5 min read · Dec 31, 2025

E-Mails Von Remote-Servern Mit getmail Abrufen (Debian Etch) - Seite 3

6 Eine Beispiel-Konfigurationsdatei

So sieht meine ~/.getmail/getmailrc Datei am Ende aus:

vi ~/.getmail/getmailrc

| [retriever] type = SimplePOP3Retriever server = pop.someprovider.tld username = [email protected] password = secret [destination] type = Maildir path = ~/Maildir/ [options] verbose = 1 read_all = false delete = true message_log_syslog = true [filter-1] type = Filter_classifier path = /usr/bin/clamdscan arguments = ("--stdout", "--no-summary", "-") exitcodes_keep = (1, ) [filter-2] type = Filter_external path = /usr/bin/spamc arguments = ("-s 250000", ) |

7 Weitere Konfigurationsbeispiele

Sie finden weitere Konfigurationsbeispiele auf http://pyropus.ca/software/getmail/configuration.html und in der getmailrc-examples Datei, die mit der getmail.tar.gz Datei geliefert wird, die Sie von http://pyropus.ca/software/getmail herunterladen können. Hier sind die Inhalte dieser Datei:

#

#

[retriever]
type = SimplePOP3Retriever
server = pop.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = Maildir
path = ~jeffp/Maildir/

#

[options]
verbose = 0
delete = true
message_log = ~/.getmail/log

[retriever]
type = SimplePOP3Retriever
server = pop.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = Maildir
path = ~jeffp/Maildir/

#

[retriever]
type = SimpleIMAPRetriever
server = mail.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = Maildir
path = ~jeffp/Maildir/

#

[retriever]
type = SimpleIMAPRetriever
server = mail.example.net
username = jeff.plotzky
password = mailpassword
mailboxes = (“INBOX”, “INBOX.spam”, “mailing-lists.getmail-users”)

[destination]
type = Maildir
path = ~jeffp/Maildir/

#

[options]
delete = true

[retriever]
type = SimpleIMAPRetriever
server = mail.example.net
username = jeff.plotzky
password = mailpassword
move_on_delete = sent-mail

[destination]
type = Maildir
path = ~jeffp/Maildir/

#

[retriever]
type = SimplePOP3Retriever
server = pop.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = Mboxrd
path = ~jeffp/Mail/inbox
user = jeffp

#

[retriever]
type = SimplePOP3Retriever
server = pop.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = MDA_external
path = /usr/local/bin/my-mda
arguments = (“–message-from-stdin”, “–scan-message”, “–to-maildir”,
“~jeffp/Maildir/“)

#

[retriever]
type = MultidropPOP3SSLRetriever
server = pop.example.net
username = companylogin
password = mailpassword

envelope_recipient = delivered-to:1

[destination]
type = MultiSorter
default = [postmaster]
locals = (
(“ [email protected] “, “[jeff]”),
(“ [email protected] “, “[martin]”),
(r”sam\D*@company.example.net”, “[sam]”),
(“ [email protected] “, “[christina-procmail]”)
)

[postmaster]
type = Maildir
path = ~joe/Mail/postmaster/
user = joe

[jeff]
type = Maildir
path = ~jeffp/Maildir/
user = jeffp

[martin]
type = Maildir
path = ~martinh/Maildir/
user = martinh

[sam]
type = Mboxrd
path = ~sam/Mail/inbox
user = sam

[christina-procmail]
type = MDA_external
path = /usr/local/bin/procmail

arguments = (“-f”, “%(sender)”, “-m”, “/home/christina/.procmailrc”)
user = christina

#

[retriever]
type = SimpleIMAPRetriever
server = mail.example.net
username = jeff.plotzky
password = mailpassword

[filter-1]
type = Filter_external
path = /usr/local/bin/spamc

[filter-2]
type = Filter_classifier
path = /usr/local/bin/clamscan
arguments = (“–stdout”, “–no-summary”,
“–mbox”, “–infected”, “-“)
exitcodes_drop = (1,)

[destination]
type = Maildir
path = ~jeffp/Maildir/

#

[retriever]
type = SimpleIMAPRetriever
server = mail.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = MultiDestination
destinations = (
“~jeff/Maildir/“,
“/var/log/mail-archive/current”,
)

#

[retriever]
type = SimplePOP3Retriever
server = pop.example.net
username = jeff.plotzky
password = mailpassword

[destination]
type = MultiGuesser
default = [my-mda]
locals = (
(“ [email protected] “, “~/Mail/lists/list1/“),
(“ [email protected] “, “~/Mail/lists/list2/“),
(“ [email protected] “, “~/Mail/other/“),
)

[my-mda]
type = MDA_external
path = /path/to/my-mda
arguments = (“-f”, “%(sender)”, “${HOME}/.mymdarc”)

Sehen Sie sich auch die getmail-Handbuchseite an:

man getmail 

um mehr über die verfügbaren Befehlszeilenparameter zu erfahren, die Sie an getmail übergeben können.

8 Links

Share: X/Twitter LinkedIn

Erhalte neue Beiträge in deinem Posteingang.

Kein Spam. Jederzeit abmelden.