powermta and vesta cp with mail wizz
power mta instalation guide
- change the host names with
ns1.domain.com
andns2.domain.com
by giving ip - change the name server and ip in domain provider
- install vesta cp using their command lines andlso make rdns in contabo
-
login to vesta cp
>>user >> admin>>edit >> name server >>> SOA change it to ns1.yourdomain.com
>> web >> add doamin >> add your doamin and do as needed
DNS >> add record >> type A record >> ns1 and ns2 and ip for domain
test the doamin and check it -
Mail >> domain.com>> add account >> info , bounce , dmarc and abuse@domain.com, postmaster@domain.com and fbl@domain.com.
check the inbox wiht roundcube and fix if needed/etc/dovecot/dovecot.conf
add the lines
namespace inbox { inbox = yes }
service dovecot restart -
install pmta and run
pmtad --debug
to debug the program
first copy the/etc/pmta/licence
secondly copy the files in/usr/sbin
to the folder
thirdly copy the config file after making changes -
set dkim record
find / -name dkim.pem
mv dkim.pem dkim_old
openssl genrsa -out dkim.private.key 1024
openssl rsa -in dkim.private.key -out dkim.public.key -pubout -outform PEM
mv dkim.private.key dkim.pem
vim dkim.public.key
service pmta restartthe dkim template
Host: dkim._domainkey
TXT Value : "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -
set SPF and Dmarc
SPF:
"v=spf1 a mx ip4:54.218.71.176 p4:54.218.71.176 ip4:54.218.71.176 ~all"
DMARC:
v=DMARC1; p=none; fo=1; rua=mailto:dmarc@xmailing.me; ruf=mailto:dmarc@xmailing.me
dns zone . txt record host @ txt valuse spf rexxord - Add mx record and also add the ip servers in that .
-
make changes to the
/etc/sysconfig/network-scripts
renaem and edit as followsGNU nano 2.3.1 File: /etc/sysconfig/network-scripts/ifcfg-eth0:2
# Generated by parse-kickstart
#UUID="7f061007-25ea-4b5a-bc39-1aad8da28505"
#DNS2="213.136.95.10"
#DNS1="213.136.95.11"
IPADDR="144.91.82.34"
GATEWAY="144.91.64.1"
NETMASK="255.255.192.0"
#BOOTPROTO="static"
DEVICE="eth0:2"
ONBOOT="yes"
#IPV6INIT="yes"
#IPV6ADDR="2a02:c207:2030:6799:0000:0000:0000:0001/64"
#IPV6_DEFAULTGW="fe80::1"
#IPV6_DEFAULTDEV="eth0"
restart the network - installing mail wizz
web > add domain > add > soft.yourdomain.com
upload to soft.yourdomain.com dir public_html
unzip and copy lastest to soft.yourdomain.com public html dir mail folder
install by >> soft.yourdoamin.com/mail/index.php
fix issues chmod -R 777
DB >> add db > naem email . user email etc and start importing
admin credentials and do the cron job bycrontab -e
restart crond and remove the instlal folderrm -rf install
-
setiing up bounce server
servers > bounce > in host "server.doamin.com"
server >> delivery server >> give config file id pass
feedback loop >>> create 3 >> abuse , postmaster, fbl - log in as the backend and create list then template and then campaign
for godaddy go to dns management >> advanced feature
power mta instalation guide
- change the host names with
ns1.domain.com
andns2.domain.com
by giving ip - change the name server and ip in domain provider
- install vesta cp using their command lines andlso make rdns in contabo
-
login to vesta cp
>>user >> admin>>edit >> name server >>> SOA change it to ns1.yourdomain.com
>> web >> add doamin >> add your doamin and do as needed
DNS >> add record >> type A record >> ns1 and ns2 and ip for domain
test the doamin and check it -
Mail >> domain.com>> add account >> info , bounce , dmarc and abuse@domain.com, postmaster@domain.com and fbl@domain.com.
check the inbox wiht roundcube and fix if needed/etc/dovecot/dovecot.conf
add the lines
namespace inbox { inbox = yes }
service dovecot restart -
install pmta and run
pmtad --debug
to debug the program
first copy the/etc/pmta/licence
secondly copy the files in/usr/sbin
to the folder
thirdly copy the config file after making changes -
set dkim record
find / -name dkim.pem
mv dkim.pem dkim_old
openssl genrsa -out dkim.private.key 1024
openssl rsa -in dkim.private.key -out dkim.public.key -pubout -outform PEM
mv dkim.private.key dkim.pem
vim dkim.public.key
service pmta restartthe dkim template
Host: dkim._domainkey
TXT Value : "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -
set SPF and Dmarc
SPF:
"v=spf1 a mx ip4:54.218.71.176 p4:54.218.71.176 ip4:54.218.71.176 ~all"
DMARC:
v=DMARC1; p=none; fo=1; rua=mailto:dmarc@xmailing.me; ruf=mailto:dmarc@xmailing.me
dns zone . txt record host @ txt valuse spf rexxord - Add mx record and also add the ip servers in that .
-
make changes to the
/etc/sysconfig/network-scripts
renaem and edit as followsGNU nano 2.3.1 File: /etc/sysconfig/network-scripts/ifcfg-eth0:2
# Generated by parse-kickstart
#UUID="7f061007-25ea-4b5a-bc39-1aad8da28505"
#DNS2="213.136.95.10"
#DNS1="213.136.95.11"
IPADDR="144.91.82.34"
GATEWAY="144.91.64.1"
NETMASK="255.255.192.0"
#BOOTPROTO="static"
DEVICE="eth0:2"
ONBOOT="yes"
#IPV6INIT="yes"
#IPV6ADDR="2a02:c207:2030:6799:0000:0000:0000:0001/64"
#IPV6_DEFAULTGW="fe80::1"
#IPV6_DEFAULTDEV="eth0"
restart the network - installing mail wizz
web > add domain > add > soft.yourdomain.com
upload to soft.yourdomain.com dir public_html
unzip and copy lastest to soft.yourdomain.com public html dir mail folder
install by >> soft.yourdoamin.com/mail/index.php
fix issues chmod -R 777
DB >> add db > naem email . user email etc and start importing
admin credentials and do the cron job bycrontab -e
restart crond and remove the instlal folderrm -rf install
-
setiing up bounce server
servers > bounce > in host "server.doamin.com"
server >> delivery server >> give config file id pass
feedback loop >>> create 3 >> abuse , postmaster, fbl - log in as the backend and create list then template and then campaign
for godaddy go to dns management >> advanced feature