Mail Server funktioniert nicht

malo95

New Member
Ich habe den Server nochmals neu Aufgesetzt und es läuft immer noch nicht. Was mache ich falsch?

E-Mail Fehlerprotokoll
Code:
Nov 6 15:48:13 s1 postmulti[4327]: fatal: open /etc/postfix/main.cf: No such file or directory
Nov 6 15:48:16 s1 postmulti[5852]: fatal: open /etc/postfix/main.cf: No such file or directory
Nov 6 15:48:17 s1 postmulti[5877]: fatal: open /etc/postfix/main.cf: No such file or directory
Nov 6 15:48:18 s1 postmulti[5903]: fatal: open /etc/postfix/main.cf: No such file or directory
 

malo95

New Member
E-Mail Protokoll Teil 1:
Code:
Nov  6 16:19:26 s1 amavis[15331]: OS_Fingerprint code  NOT loaded
Nov  6 16:19:26 s1 amavis[15331]: ANTI-VIRUS code  loaded
Nov  6 16:19:26 s1 amavis[15331]: ANTI-SPAM code  loaded
Nov  6 16:19:26 s1 amavis[15331]: ANTI-SPAM-EXT code  NOT loaded
Nov  6 16:19:26 s1 amavis[15331]: ANTI-SPAM-C code  NOT loaded
Nov  6 16:19:26 s1 amavis[15331]: ANTI-SPAM-SA code  loaded
Nov  6 16:19:26 s1 amavis[15331]: Unpackers code  loaded
Nov  6 16:19:26 s1 amavis[15331]: DKIM code  loaded
Nov  6 16:19:26 s1 amavis[15331]: Tools code  NOT loaded
Nov  6 16:19:26 s1 amavis[15331]: Found $file  at /usr/bin/file
Nov  6 16:19:26 s1 amavis[15331]: No $altermime,  not using it
Nov  6 16:19:26 s1 amavis[15331]: Internal decoder for .mail
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .Z  at /bin/uncompress
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .gz  at /bin/gzip -d
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .bz2  at /bin/bzip2 -d
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .xz  at /usr/bin/xz -dc
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .lzma at /usr/bin/xz -dc --format=lzma
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .lrz, tried: lrzip -q -k -d -o -, lrzcat -q -k
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .lzo  at /usr/bin/lzop -d
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .lz4, tried: lz4c -d
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .rpm, tried: rpm2cpio.pl, rpm2cpio
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .cpio at /bin/pax
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .tar  at /bin/pax
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .deb  at /usr/bin/ar
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .rar, tried: unrar-free
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .arj  at /usr/bin/arj
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .arc  at /usr/bin/nomarch
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .zoo  at /usr/bin/zoo
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .doc, tried: ripole
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .cab  at /usr/bin/cabextract
Nov  6 16:19:26 s1 amavis[15331]: Internal decoder for .tnef
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .zip, tried: 7za, 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .kmz, tried: 7za, 7z
Nov  6 16:19:26 s1 amavis[15331]: Internal decoder for .zip
Nov  6 16:19:26 s1 amavis[15331]: Internal decoder for .kmz
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .7z, tried: 7zr, 7za, 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .jar, tried: 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .rar, tried: 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .swf, tried: 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .lha, tried: 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .iso, tried: 7z
Nov  6 16:19:26 s1 amavis[15331]: No ext program for  .rpm, tried: 7z
Nov  6 16:19:26 s1 amavis[15331]: Found decoder for  .exe  at /usr/bin/arj
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .7z
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .F
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .doc
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .iso
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .jar
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .lha
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .lrz
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .lz4
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .rar
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .rpm
Nov  6 16:19:26 s1 amavis[15331]: No decoder for  .swf
Nov  6 16:19:26 s1 amavis[15331]: Using primary internal av scanner code for ClamAV-clamd
Nov  6 16:19:26 s1 amavis[15331]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Nov  6 16:19:26 s1 amavis[15331]: Deleting db files nanny.db,snmp.db,__db.003,__db.001,__db.002 in /var/lib/amavis/db
Nov  6 16:19:26 s1 amavis[15331]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.55, libdb 5.3
Nov  6 16:19:28 s1 dovecot: config: Warning: /etc/dovecot/dovecot.conf line 67: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 53 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 53)
 

malo95

New Member
E-Mail Protokoll Teil 2:
Code:
Nov  6 16:19:28 s1 dovecot: master: Warning: Killed with signal 15 (by pid=15346 uid=0 code=kill)
Nov  6 16:19:28 s1 dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Nov  6 16:19:29 s1 dovecot: master: Dovecot v2.2.24 (a82c823) starting up for imap, pop3 (core dumps disabled)
Nov  6 16:19:29 s1 dovecot: config: Warning: /etc/dovecot/dovecot.conf line 67: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 53 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 53)
Nov  6 16:19:32 s1 postfix/smtpd[15501]: connect from localhost[127.0.0.1]
Nov  6 16:19:32 s1 postfix/smtpd[15501]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <mailman-bounces@s1.malo95.com>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<mailman-bounces@s1.malo95.com> to=<listadmin@malo95.com> proto=ESMTP helo=<s1.malo95.com>
Nov  6 16:19:32 s1 postfix/smtpd[15501]: C263443137: client=localhost[127.0.0.1]
Nov  6 16:19:32 s1 postfix/cleanup[15511]: C263443137: message-id=<mailman.0.1478448311.4195.mailman@s1.malo95.com>
Nov  6 16:19:32 s1 postfix/qmgr[15330]: C263443137: from=<mailman-bounces@s1.malo95.com>, size=2556, nrcpt=1 (queue active)
Nov  6 16:19:32 s1 postfix/smtpd[15501]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Nov  6 16:20:28 s1 postfix/smtpd[15501]: connect from localhost[127.0.0.1]
Nov  6 16:20:28 s1 postfix/smtpd[15501]: lost connection after CONNECT from localhost[127.0.0.1]
Nov  6 16:20:28 s1 postfix/smtpd[15501]: disconnect from localhost[127.0.0.1] commands=0/0
Nov  6 16:20:28 s1 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<SH4aSaRA4M9/AAAB>
Nov  6 16:20:28 s1 dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<DaQaSaRAKtB/AAAB>
Nov  6 16:24:20 s1 amavis[15440]: (15440-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: ask_daemon_internal: Exceeded allowed time at (eval 112) line 611.\n
Nov  6 16:24:20 s1 amavis[15440]: (15440-01) (!)WARN: all primary virus scanners failed, considering backups
Nov  6 16:24:23 s1 amavis[15440]: (15440-01) (!)run_av (ClamAV-clamscan) FAILED - unexpected exit 2, output="LibClamAV Error: mpool_malloc(): Can't allocate memory (262144 bytes).\nLibClamAV Error: hm_addhash_bin: failed to grow hash array to 1025 entries\nLibClamAV Error: cli_loadhash: Malformed hash string at line 87240\nLibClamAV Error: cli_loadhash: Problem parsing database at line 87240\nLibClamAV Error: Can't load daily.hsb: Can't allocate memory\nLibClamAV Error: cli_tgzload: Can't load daily.hsb\nLibClamAV Error: Can't load /var/lib/clamav/daily.cvd: Malformed database\nERROR: Malformed database"
Nov  6 16:24:23 s1 amavis[15440]: (15440-01) (!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 2, output="LibClamAV Error: mpool_malloc(): Can't allocate memory (262144 bytes).\nLibClamAV Error: hm_addhash_bin: failed to grow hash array to 1025 entries\nLibClamAV Error: cli_loadhash: Malformed hash string at line 87240\nLibClamAV Error: cli_loadhash: Problem parsing database at line 87240\nLibClamAV Error: Can't load daily.hsb: Can't allocate memory\nLibClamAV Error: cli_tgzload: Can't load daily.hsb\nLibClamAV Error: Can't load /var/lib/clamav/daily.cvd: Malformed database\nERROR: Malformed database" at (eval 112) line 905.
Nov  6 16:24:23 s1 amavis[15440]: (15440-01) (!!)AV: ALL VIRUS SCANNERS FAILED
Nov  6 16:24:24 s1 postfix/smtpd[26978]: connect from localhost[127.0.0.1]
Nov  6 16:24:24 s1 dovecot: config: Warning: /etc/dovecot/dovecot.conf line 67: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 53 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 53)
Nov  6 16:24:24 s1 postfix/smtpd[26978]: D6D5443147: client=localhost[127.0.0.1]
Nov  6 16:24:24 s1 postfix/cleanup[26983]: D6D5443147: message-id=<mailman.0.1478448311.4195.mailman@s1.malo95.com>
Nov  6 16:24:24 s1 postfix/qmgr[15330]: D6D5443147: from=<mailman-bounces@s1.malo95.com>, size=2992, nrcpt=1 (queue active)
Nov  6 16:24:24 s1 amavis[15440]: (15440-01) Passed UNCHECKED {RelayedOutbound}, ORIGINATING LOCAL [127.0.0.1]:38222 <mailman-bounces@s1.malo95.com> -> <listadmin@malo95.com>, Queue-ID: C263443137, Message-ID: <mailman.0.1478448311.4195.mailman@s1.malo95.com>, mail_id: 2nhLOczKqO3s, Hits: -1, size: 2556, queued_as: D6D5443147, 292086 ms
Nov  6 16:24:24 s1 postfix/smtp[15513]: C263443137: to=<listadmin@malo95.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=292, delays=0.03/0.02/0.02/292, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10027): 250 2.0.0 Ok: queued as D6D5443147)
Nov  6 16:24:24 s1 postfix/qmgr[15330]: C263443137: removed
Nov  6 16:24:25 s1 postfix/smtp[26984]: D6D5443147: to=<listadmin@malo95.com>, relay=none, delay=0.41, delays=0.03/0.04/0.34/0, dsn=5.4.6, status=bounced (mail for malo95.com loops back to myself)
Nov  6 16:24:25 s1 postfix/cleanup[26983]: 4577943149: message-id=<20161106162425.4577943149@s1.malo95.com>
Nov  6 16:24:25 s1 postfix/qmgr[15330]: 4577943149: from=<>, size=4836, nrcpt=1 (queue active)
Nov  6 16:24:25 s1 postfix/bounce[26985]: D6D5443147: sender non-delivery notification: 4577943149
Nov  6 16:24:25 s1 postfix/qmgr[15330]: D6D5443147: removed
Nov  6 16:24:25 s1 postfix/local[26987]: 4577943149: to=<mailman-bounces@s1.malo95.com>, relay=local, delay=0.19, delays=0.01/0.02/0/0.16, dsn=2.0.0, status=sent (delivered to command: /var/lib/mailman/mail/mailman bounces mailman)
Nov  6 16:24:25 s1 postfix/qmgr[15330]: 4577943149: removed
Nov  6 16:24:26 s1 postfix/smtpd[26989]: connect from localhost[127.0.0.1]
Nov  6 16:24:26 s1 postfix/smtpd[26989]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <mailman-loop@s1.malo95.com>: Sender address triggers FILTER amavis:[127.0.0.1]:10026; from=<mailman-loop@s1.malo95.com> to=<listadmin@malo95.com> proto=ESMTP helo=<s1.malo95.com>
Nov  6 16:24:26 s1 postfix/smtpd[26989]: E185C43147: client=localhost[127.0.0.1]
Nov  6 16:24:26 s1 postfix/cleanup[26983]: E185C43147: message-id=<20161106162425.4577943149@s1.malo95.com>
Nov  6 16:24:26 s1 postfix/qmgr[15330]: E185C43147: from=<mailman-loop@s1.malo95.com>, size=5190, nrcpt=1 (queue active)
Nov  6 16:24:26 s1 postfix/smtpd[26989]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
 

Till

Administrator
Reverse DNS Record für Deine IP anlegen, das geht meist beim Server hoster in dessen Controlpanel.
 

malo95

New Member
Meine Server heisst s1.malo95.com und so sehen die Records aus:
Code:
$ORIGIN malo95.com.
$TTL 1800
malo95.com. IN SOA ns1.digitalocean.com. hostmaster.malo95.com. 1478520882 10800 3600 604800 1800
malo95.com. 1800 IN NS ns1.digitalocean.com.
malo95.com. 1800 IN NS ns2.digitalocean.com.
malo95.com. 1800 IN NS ns3.digitalocean.com.
malo95.com. 1800 IN A 138.68.71.15
*.malo95.com. 1800 IN A 138.68.71.15
malo95.com. 1800 IN AAAA 2a03:b0c0:3:d0::20a6:b001
malo95.com. 1800 IN MX 1 s1.malo95.com.
s1.malo95.com. 1800 IN A 138.68.71.15
Ich bin bei DigitalOcean meine frage ist, ob es richtig ist, dass mein Droplet s1 heisst oder muss es s1.malo95.com sein?
 

malo95

New Member
Ist dies jetzt korrekt? und muss ich jetzt noch irgendwelche Dienste neu starten?
Code:
root@s1:~# host 138.68.71.15
15.71.68.138.in-addr.arpa domain name pointer s1.malo95.com.
 

malo95

New Member
Ich kann nun E-Mail verschicken.
Aber meine Eingehende E-Mails hatten die Meldung ***UNCHECKED*** im Betreff.
Nun Suche ich im Forum für eine Lösung und fand diesen Forum Beitrag, ***UNCHECKED*** im Betreff
Als ich nun Amavis neu zu starten versuche, gelingt mir dies nicht.

Folgende Fehlermeldung erscheint:
Code:
root@s1:~# service amavis stop
root@s1:~# service amavis start
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
root@s1:~# systemctl status amavis.service
? amavis.service - LSB: Starts amavisd-new mailfilter
   Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2016-11-09 11:05:08 UTC; 20s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 18697 ExecStop=/etc/init.d/amavis stop (code=exited, status=0/SUCCESS)
  Process: 18828 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Nov 09 11:05:05 s1 systemd[1]: Starting LSB: Starts amavisd-new mailfilter...
Nov 09 11:05:07 s1 amavis[18847]: starting. /usr/sbin/amavisd-new at s1.malo95.com amavisd-new-2.10.1 (20141025), Unicode aware, LC_ALL="C", LANG="en_US.UTF-
Nov 09 11:05:08 s1 amavis[18847]: (!)Net::Server: 2016/11/09-11:05:08 Couldn't fork: [Cannot allocate memory] at /usr/share/perl5/Net/Server/Daemonize.pm lin
Nov 09 11:05:08 s1 amavis[18828]: Starting amavisd: (failed).
Nov 09 11:05:08 s1 systemd[1]: amavis.service: Control process exited, code=exited status=1
Nov 09 11:05:08 s1 systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
Nov 09 11:05:08 s1 systemd[1]: amavis.service: Unit entered failed state.
Nov 09 11:05:08 s1 systemd[1]: amavis.service: Failed with result 'exit-code'.
 

Till

Administrator
1GB ist recht knapp für einen server auf dem mail + web + dns laufen da gerade das mail scan system und clamav viel speicher brauchen, kann aber reichen wenn Du nochmal 1 - 2gb swap hast.

Wieviel freien speicher Du hast und was ihn nutzt kannst Du z.B. mit dem Befehl "top" sehen.
 

Till

Administrator
Man kann aber auch speicher sparen, z.B. bei websites php modus php-fpm nehemn und auf dem optionen tab "
PHP-FPM Process Manager" auf "ondemand" stellen.
 

malo95

New Member
Eine Frage, wenn ich ein Multiserver Setup machen würde, würden 3x500 MB RAM für je einen Mail, Web & DB Server reichen?
 
Zuletzt bearbeitet:

nowayback

Well-Known Member
1x mail, 1x web und 1x db verteilt auf 3 vms mit je 500mb ram? wenn es nur zum spielen ist, könnte es klappen. produktiv dürfte dir der mailserver bei zeiten einknicken, der db server schnell an seine grenzen kommen und der webserver naja... wird gehen, aber viel erwarten darfst du auch da nicht.
einfach ram besorgen und viele probleme lösen sich von selbst. und ram kostet eigentlich kein geld mehr.
 

Werbung

Top