PMTA How to create a new SMTP user in virtualhost.txt

  • Thread starter Underground Forum
  • Start date
  • Tags
    pmta server
Underground Forum

Underground Forum

  • #1

Adding new SMTP user​


After installing PowerMTA manually, you will need to create a new SMTP user and virtual-mta. To create an user, edit the virtualhost.txt file:

# Adding new VMTA-user

<smtp-user user1>                  # user's name
        password password XXXXX    # user's password
        source {pmta-auth}
</smtp-user>
<source {pmta-auth}>
        smtp-service yes
        always-allow-relaying yes
        require-auth true
        process-x-virtual-mta yes
        default-virtual-mta pmta-pool
        remove-received-headers true
        add-received-header false  # remove "received" header
        hide-message-source false
        #pattern-list pmta-pattern
        #remove-header X-Mw-Mailer  # remove X-Mw-Mailer
process-x-job false
</source>
 
# create VMTA

<virtual-mta DOMAIN.COM-vmta>
auto-cold-virtual-mta 000.00.000.000 DOMAIN.COM
domain-key key1,DOMAIN.COM,/etc/pmta/key1.DOMAIN.COM.pem
max-smtp-out 850
    <domain *>
    </domain>
smtp-source-host 000.00.000.000 DOMAIN.COM
</virtual-mta>
 
Top