Postfix + Postfixadmin + Dovecot + SASL — CentOS

Test point:

    postmap -q yourdomain.com mysql:/etc/postfix/mysql-domains.cf
    yourdomain.com
    
    vi /etc/postfix/mysql-users.cf
    

    host = localhost
    user = root
    password =
    dbname = postfix
    table = mailbox
    select_field = maildir
    where_field = username
    additional_conditions = and active = '1'
    result_format = %sMaildir/

    postmap -q [email protected] mysql:/etc/postfix/mysql-users.cf
    [email protected]/Maildir/
    service postfix restart
    Shutting down postfix: [FAILED]
    Starting postfix: [  OK  ]
    
    telnet localhost smtp
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'. 
    
    220 www.yourdomain.com ESMTP Postfix
    ehlo host
    250-www.yourdomain.com
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    mail from: [email protected]
    250 2.1.0 Ok
    rcpt to: [email protected]
    250 2.1.5 Ok
    data
    354 End data with .
    Dear Marie,
    How are you? Alles goed?
    Mvg
    Shamun
    250 2.0.0 Ok: queued as 4E20D5F88033
    quit
    221 2.0.0 Bye
    Connection closed by foreign host.
    

    Страниц: 1 2 3 4

Добавить комментарий