MailArchiva - setup (done), now (how to) operate?

Discussion in 'Server Operation' started by muelli75, May 17, 2020.

  1. muelli75

    muelli75 Member HowtoForge Supporter

    Hi!

    In my ISPconfig 3.1 there are some web- and mailhosts. All runs well and stable.
    After a while, I want to backup mailboxes on a different server. So I decide to use MailArchiva V 7.12.0 (free licence because less than 20 Mailboxes).
    The mainsetup of MailArchive ist done (volumes, storagepools, listenders, some connections, S3 backupsolution), all tests are fine.

    But now for me its difficult to understand how mailarchiva works in some mainfunctions.
    Things I (hopefully) understood, please comment if right or wrong:
    • MailArchiva needs a copy of any outgoing/incoming email to store it. So I have to advise postfix to forward any mails to MailArchivas SMTP-Server, described at http://help.mailarchiva.com/postfix$smtp

    Things I do not understand at the moment:
    • How to configure postfix to deliver a copy of any mail (after spamassasin and amavisd) to the mailarchiva-server.

    I did the config on postfix as described above in help.mailarchiva.com - resulting that no mail is delivered to the mailbox.

    /etc/postfix/main.cf
    Code:
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf, hash:/etc/postfix/transport
    
    /etc/postfix/transport
    Code:
    MySampleDomain.at smtp: [archive.MySampleDomain.at]
    
    or also tested with

    Code:
    MySampleDomain.at smtp: [80.xx.xx.xx]
    
    than, as root, i did

    postmap /etc/postfix/transport​

    and

    /etc/init.d/postfix reload​

    the message of mailq
    Code:
    F25A1558BE79     3305 Sun May 17 14:18:47  [email protected]
                                                    (unknown mail transport error)
                                             [email protected]
    
    
    and mail.log says:
    Code:
    May 17 14:18:47 monarch postfix/smtpd[9742]: 63848558BE42: client=mail-ed1-x52f.google.com[2a00:1450:4864:20::52f]
    May 17 14:18:47 monarch postfix/cleanup[9747]: 63848558BE42: message-id=<CANgn+kf-x3aGgmyYVxPm+S9=YkwfcEYJDz7=Eoeo_MvztyKHBg@mail.gmail.com>
    May 17 14:18:47 monarch postfix/qmgr[9713]: 63848558BE42: from=<[email protected]>, size=2670, nrcpt=1 (queue active)
    May 17 14:18:47 monarch postfix/smtpd[9742]: disconnect from mail-ed1-x52f.google.com[2a00:1450:4864:20::52f] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7
    May 17 14:18:47 monarch postfix/smtpd[9751]: connect from localhost.localdomain[127.0.0.1]
    May 17 14:18:47 monarch postfix/smtpd[9751]: F25A1558BE79: client=localhost.localdomain[127.0.0.1]
    May 17 14:18:47 monarch postfix/cleanup[9747]: F25A1558BE79: message-id=<CANgn+kf-x3aGgmyYVxPm+S9=YkwfcEYJDz7=Eoeo_MvztyKHBg@mail.gmail.com>
    May 17 14:18:48 monarch postfix/smtpd[9751]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
    May 17 14:18:48 monarch postfix/qmgr[9713]: F25A1558BE79: from=<[email protected]>, size=3305, nrcpt=1 (queue active)
    May 17 14:18:48 monarch amavis[4371]: (04371-13) Passed CLEAN {RelayedInbound}, [2a00:1450:4864:20::52f]:44137 [2a00:1450:4864:20::52f] <[email protected]> -> <[email protected]>, Queue-ID: 63848558BE42, Message-ID: <CANgn+kf-x3aGgmyYVxPm+S9=YkwfcEYJDz7=Eoeo_MvztyKHBg@mail.gmail.com>, mail_id: oz89u0UK6QIV, Hits: -2.098, size: 2670, queued_as: F25A1558BE79, dkim_sd=20161025:gmail.com, 543 ms
    May 17 14:18:48 monarch postfix/smtp[9748]: 63848558BE42: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.69, delays=0.13/0.02/0/0.54, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as F25A1558BE79)
    May 17 14:18:48 monarch postfix/qmgr[9713]: 63848558BE42: removed
    May 17 14:18:48 monarch postfix/smtp[9752]: fatal: valid hostname or network address required in server description:  [80.75.246.35]
    May 17 14:18:49 monarch postfix/smtpd[9742]: connect from unknown[45.142.195.13]
    May 17 14:18:49 monarch postfix/smtpd[9742]: disconnect from unknown[45.142.195.13] quit=1 commands=1
    May 17 14:18:49 monarch postfix/qmgr[9713]: warning: private/smtp socket: malformed response
    May 17 14:18:49 monarch postfix/qmgr[9713]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
    May 17 14:18:49 monarch postfix/master[27426]: warning: process /usr/lib/postfix/sbin/smtp pid 9752 exit status 1
    May 17 14:18:49 monarch postfix/master[27426]: warning: /usr/lib/postfix/sbin/smtp: bad command startup -- throttling
    May 17 14:18:49 monarch postfix/error[9755]: F25A1558BE79: to=<[email protected]>, relay=none, delay=1.2, delays=0.05/1/0/0.07, dsn=4.3.0, status=deferred (unknown mail transport error)
    
    After I removed ", hash:/etc/postfix/transport" from main.cd, line transport_maps, all mails delivered to the box.

    Any ideas how to fix this and make it compatible to ISPconfig? Thanks for any inputs!

    Martin
     
    Last edited: May 17, 2020

Share This Page