Sign inSign up

eltiopatxi/mailserver

By eltiopatxi

•Updated about 11 years ago

Imagen de servidor de correo con antivirus, antispam, etc...

Image
0

419

eltiopatxi/mailserver repository overview

ARRANCAR Al iniciar el contenedor, arrancar los siguientes servicios: 1.- #service mysql start 2.- #dovecot 3.- #service postfix start 4.- #service amavis start 5.- #service spamassassin start 6.- #service clamav-daemon start

HOSTS Asegurarse de que en el fichero /etc/hosts del equipo que se va a usar como cliente, existe una entrada que apunta al servidor de correo mailserver.dragon.lab con su IP correspondiente. O bien una entrada en nuestro servidor DNS. 172.17.0.1 mailserver.dragon.lab mailserver

CONFIGURACION CLIENTES DE CORREO IMAP+ Email address: [email protected]⁠. Server Type: IMAP+ Server: mailserver.dragon.lab Port: 993 Username: [email protected]⁠ Encryption method: SSL on Dedicated port Authentication: Password POP3 Email address: [email protected]⁠. Server Type: POP3 Server: mailserver.dragon.lab Port: 995 Username: [email protected]⁠ Encryption method: SSL on Dedicated port Authentication: Password SMTP Server: mailserver.dragon.lab Port: 25 TICK, Server requires authentication Encryption Mathod: start TLS after connecting Username: [email protected]⁠ Auth Type: Login

USUARIOS DE EJEMPLO Como ejemplo se han insertado:

SCRIPT DE CREACION DE USUARIOS USE postfix;

DELETE FROM domain; DELETE FROM user; DELETE FROM alias;

INSERT INTO domain (domain) VALUES ('dragon.lab');

INSERT INTO user (email, domain, password) VALUES ('[email protected]⁠', 'dragon.lab', ENCRYPT('mysqlpasswd', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16)))), ('[email protected]⁠', 'dragon.lab', ENCRYPT('mysqlpasswd', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))));

INSERT INTO alias (source, destination) VALUES ('root', '[email protected]⁠'), ('[email protected]⁠', '[email protected]⁠'), ('[email protected]⁠', '[email protected]⁠'), ('@dragon.lab', '[email protected]⁠');

copiar el código SQL anterior y guardarlo en un archivo. p.ej. archivo.sql #mysql -u root -p postfix < archivo.sql (este comando inserta el dominio y los usuarios de prueba anteriores) Observar que el password se guarda en la base de datos encriptada. En el caso de los dos usuarios de prueba es 'mysqlpassword'

Tag summary

Content type

Image

Digest

sha256:efb25465c…

Size

261.1 MB

Last updated

about 11 years ago

docker pull eltiopatxi/mailserver