Implement fetchmail (#260) (#271)

To retrieve emails from external mail accounts.
This commit is contained in:
Josef Friedrich 2016-08-21 22:13:13 +02:00 committed by Thomas VIAL
parent 8b289f6717
commit e7de8b9245
8 changed files with 77 additions and 3 deletions

5
test/config/fetchmail.cf Normal file
View file

@ -0,0 +1,5 @@
poll pop3.example.com with proto POP3
user 'username' there with
password 'secret'
is 'user2@domain.tld'
here options keep ssl

View file

@ -37,6 +37,16 @@
[ "$status" -eq 0 ]
}
@test "checking process: fetchmail (disabled in default configuration)" {
run docker exec mail /bin/bash -c "ps aux --forest | grep -v grep | grep '/usr/bin/fetchmail'"
[ "$status" -eq 1 ]
}
@test "checking process: fetchmail (fetchmail server enabled)" {
run docker exec mail_fetchmail /bin/bash -c "ps aux --forest | grep -v grep | grep '/usr/bin/fetchmail'"
[ "$status" -eq 0 ]
}
@test "checking process: amavis (amavis disabled by DISABLE_AMAVIS)" {
run docker exec mail_disabled_amavis /bin/bash -c "ps aux --forest | grep -v grep | grep '/usr/sbin/amavisd-new'"
[ "$status" -eq 1 ]
@ -436,6 +446,20 @@
[ "$status" -eq 1 ]
}
#
# fetchmail
#
@test "checking fetchmail: gerneral options in fetchmailrc are loaded" {
run docker exec mail_fetchmail grep 'set syslog' /etc/fetchmailrc
[ "$status" -eq 0 ]
}
@test "checking fetchmail: fetchmail.cf is loaded" {
run docker exec mail_fetchmail grep 'pop3.example.com' /etc/fetchmailrc
[ "$status" -eq 0 ]
}
#
# system
#