Notas de como instalar un servidor de correo postfix y opendkim en Slackware

 

instalacion postfix

 

descargar slackbuild

groupadd -g 200 postfix

useradd -u 200 -d /dev/null -s /bin/false -g postfix postfix

 

groupadd -g 201 postdrop

 

./postfix.SlackBuild

installpkg postfix-3.1.1-i486-1_SBo.tgz

chmod +x rc.postfix

/etc/rc.d/rc.postfix start

postfix/postfix-script: starting the Postfix mail system

 

 acontinuacion isntalamos el paquete de slackbuild opendkim

 

https://slackbuilds.org/repository/14.2/network/opendkim/

 

opendkim-genkey -b 1024 -D /etc/opendkim/keys -s mailsvr -d miservidor.org

esto me genera un fichero terminado en txt con un contenido similar a :

default._domainkey IN TXT ( "v=DKIM1; k=rsa; "
"p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDRbh3KYujYIZmYgC0wrM")
; ----- DKIM key default for server

este es el fichero que tendras que poner en to DNS server para validar el
servidor de correo DNS

solo tendras que arrancar los dos servicios en el arranque con el comando
/etc/rc.d/rc.postfix start
/etc/rc.d/rc.opendkim start

Sola mente te queda enviar y recibir correos , siendo importante tener el fichero
en modo tail , para analizar su funcionamiento:

Aug 15 18:18:02 server postfix/smtpd[1669]: connect from unknown[111.48.19.39]
Aug 15 18:18:04 server postfix/smtpd[1669]: 0345761664: client=unknown[111.48.19.39]
Aug 15 18:18:05 server postfix/cleanup[1673]: 0345761664: message-id=<>
Aug 15 18:18:05 server postfix/qmgr[1301]: 0345761664: from=<2wtdzzurbn@docomo.ne.jp>, size=772, nrcpt=1 (queue active)
Aug 15 18:18:05 server postfix/local[1674]: 0345761664: to=<prueba@miserver.org>, relay=local, delay=1.8, delays=1.8/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 15 18:18:05 server postfix/qmgr[1301]: 0345761664: removed
Aug 15 18:18:05 server postfix/smtpd[1669]: disconnect from unknown[111.48.19.39] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 15 18:21:25 server postfix/anvil[1671]: statistics: max connection rate 1/60s for (smtp:112.126.68.96) at Aug 15 18:16:53
Aug 15 18:21:25 server postfix/anvil[1671]: statistics: max connection count 1 for (smtp:112.126.68.96) at Aug 15 18:16:53
Aug 15 18:21:25 server postfix/anvil[1671]: statistics: max cache size 1 at Aug 15 18:16:53

Leave a Reply

Your email address will not be published. Required fields are marked *