######################################################################################################
=================================================================
[root@a211 ~]# vim /etc/mail/access
=================================================================
Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY ___________> PERMITIDO
Connect:localhost RELAY ___________> NOMBRE DE LA MAKINA ESTA ACTIVO
Connect:127.0.0.1 RELAY ___________> LOCBAK ESTA
~
~
:wq
######################################################################################################
=================================================================
[root@a211 ~]# vim /etc/mail/local-host-names
=================================================================
# local-host-names - include all aliases for your machine here.
idatlinux1.com
correo.idatlinux1.com
correo--> nombre de la makina
~
~
:wq
====================================== para ver los archivos del dns===========================
[root@a211 ~]# cd /etc/mail
You have new mail in /var/spool/mail/root
[root@a211 mail]# ls
access domaintable helpfile mailertable Makefile sendmail.mc submit.mc virtusertable
access.db domaintable.db local-host-names mailertable.db sendmail.cf submit.cf trusted-users virtusertable.db
[root@a211 mail]#
######################################################################################################
==================================================================
[root@a211 mail]# vim relay-domains
==================================================================
idatlinux1.com
correo.idatlinux1.com
######################################################################################################
==================================================================
[root@a211 mail]# vim /etc/mail/sendmail.mc
==================================================================
______________________________________________
linea 116
camviariamos el ip con el k keremos k trabajo
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=10.10.12.20, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=10.10.12.20, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=168.25.12.12, Name=MTA')dnl
se puede poner tantos como servidores de correos haya
________________________________________
linea 149
esto es para k no entren cualkier cosa
FEATURE(`accept_unresolvable_domains')dnl ---> esta asi
dnl FEATURE(`accept_unresolvable_domains')dnl --- se kda asi
_______________________________________
linea 160
dnl MASQUERADE_AS(`mydomain.com')dnl -----__> estaba si
MASQUERADE_AS(`idatlinux.com')dnl _______> se keda ssi
_____________________________________--
lineas 164 168
FEATURE(masquerade_envelope)dnl _____> se le kita el comentario
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
FEATURE(masquerade_entire_domain)dnl _____> se le kita el comentario
nota---> si esta avilitado el MASQUERADE_AS tiene k estar avilitado las otras 2 lineas de debajo
__________________ para emcriptar el passs _____________________
las lineas 139 144
dnl define(`confAUTH_OPTIONS', `A')dnl ______> se comenta esta
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
define(`confAUTH_OPTIONS', `A p')dnl -----------_> se descomenta esta
######################################################################################################
=================================================================
[root@a211 ~]# vim /etc/mail/access
=================================================================
Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
Connect:localhost.localdomain RELAY ___________> PERMITIDO
Connect:localhost RELAY ___________> NOMBRE DE LA MAKINA ESTA ACTIVO
Connect:127.0.0.1 RELAY ___________> LOCBAK ESTA
~
~
:wq
######################################################################################################
=================================================================
[root@a211 ~]# vim /etc/mail/local-host-names
=================================================================
# local-host-names - include all aliases for your machine here.
idatlinux1.com
correo.idatlinux1.com
correo--> nombre de la makina
~
~
:wq
====================================== para ver los archivos del dns===========================
[root@a211 ~]# cd /etc/mail
You have new mail in /var/spool/mail/root
[root@a211 mail]# ls
access domaintable helpfile mailertable Makefile sendmail.mc submit.mc virtusertable
access.db domaintable.db local-host-names mailertable.db sendmail.cf submit.cf trusted-users virtusertable.db
[root@a211 mail]#
######################################################################################################
==================================================================
[root@a211 mail]# vim relay-domains
==================================================================
idatlinux1.com
correo.idatlinux1.com
######################################################################################################
==================================================================
[root@a211 mail]# vim /etc/mail/sendmail.mc
==================================================================
______________________________________________
linea 116
camviariamos el ip con el k keremos k trabajo
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=10.10.12.20, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=10.10.12.20, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=168.25.12.12, Name=MTA')dnl
se puede poner tantos como servidores de correos haya
________________________________________
linea 149
esto es para k no entren cualkier cosa
FEATURE(`accept_unresolvable_domains')dnl ---> esta asi
dnl FEATURE(`accept_unresolvable_domains')dnl --- se kda asi
_______________________________________
linea 160
dnl MASQUERADE_AS(`mydomain.com')dnl -----__> estaba si
MASQUERADE_AS(`idatlinux.com')dnl _______> se keda ssi
_____________________________________--
lineas 164 168
FEATURE(masquerade_envelope)dnl _____> se le kita el comentario
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
FEATURE(masquerade_entire_domain)dnl _____> se le kita el comentario
nota---> si esta avilitado el MASQUERADE_AS tiene k estar avilitado las otras 2 lineas de debajo
__________________ para emcriptar el passs _____________________
las lineas 139 144
dnl define(`confAUTH_OPTIONS', `A')dnl ______> se comenta esta
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
define(`confAUTH_OPTIONS', `A p')dnl -----------_> se descomenta esta
_______________________________________
linaeas 52 53
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl __________> estaba comentado se lo descomenta a estas 2 lineas
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
######################################################################################################
===============================================================================
dovecot para configurar los protocolos
[root@a211 mail]# vim /etc/dovecot.conf
===============================================================================
____________________________-
en la linea 20
#protocols = imap imaps pop3 pop3 ___________> estaba comentado
protocols = imap pop3 ___________> se kda asi
######################################################################################################
creacion de usuariois
[root@a211 mail]# useradd -s /sbin/login idat1
[root@a211 mail]# useradd -s /sbin/login idat2
[root@a211 mail]# useradd -s /sbin/login idat3
[root@a211 mail]# passwd idat1
Changing password for user idat1.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@a211 mail]# passwd idat2
Changing password for user idat2.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@a211 mail]# saslpasswd2 idat1 -----------------------------> password para el correo con el metodo plain
Password:
Again (for verification):
[root@a211 mail]# saslpasswd2 idat2
Password:
Again (for verification):
[root@a211 mail]#
ldap ----> dominio para 3 servicios
[root@a211 mail]# service sendmail restart
Desactivación de sm-client: [ OK ]
Apagando sendmail: [ OK ]
Iniciando sendmail: [ OK ]
Inicio de sm-client: [ OK ]
[root@a211 mail]# service dovecot restart
Parando Dovecot Imap: [FALLÓ]
Iniciando Dovecot Imap: [ OK ]
[root@a211 mail]# service saslautht restart
saslautht: service desconocido
[root@a211 mail]# service saslauthd restart
Parando saslauthd: [FALLÓ]
Iniciando saslauthd: [ OK ]
[root@a211 mail]# service saslauthd restart
Parando saslauthd: [ OK ]
Iniciando saslauthd: [ OK ]
[root@a211 mail]# service dovecot restart
Parando Dovecot Imap: [ OK ]
Iniciando Dovecot Imap: [ OK ]
[root@a211 mail]#
_______________________________________
linaeas 52 53
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl __________> estaba comentado se lo descomenta a estas 2 lineas
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
######################################################################################################
===============================================================================
dovecot para configurar los protocolos
[root@a211 mail]# vim /etc/dovecot.conf
===============================================================================
____________________________-
en la linea 20
#protocols = imap imaps pop3 pop3 ___________> estaba comentado
protocols = imap pop3 ___________> se kda asi
######################################################################################################
creacion de usuariois
[root@a211 mail]# useradd -s /sbin/login idat1
[root@a211 mail]# useradd -s /sbin/login idat2
[root@a211 mail]# useradd -s /sbin/login idat3
[root@a211 mail]# passwd idat1
Changing password for user idat1.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@a211 mail]# passwd idat2
Changing password for user idat2.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@a211 mail]# saslpasswd2 idat1 -----------------------------> password para el correo con el metodo plain
Password:
Again (for verification):
[root@a211 mail]# saslpasswd2 idat2
Password:
Again (for verification):
[root@a211 mail]#
ldap ----> dominio para 3 servicios
[root@a211 mail]# service sendmail restart
Desactivación de sm-client: [ OK ]
Apagando sendmail: [ OK ]
Iniciando sendmail: [ OK ]
Inicio de sm-client: [ OK ]
[root@a211 mail]# service dovecot restart
Parando Dovecot Imap: [FALLÓ]
Iniciando Dovecot Imap: [ OK ]
[root@a211 mail]# service saslautht restart
saslautht: service desconocido
[root@a211 mail]# service saslauthd restart
Parando saslauthd: [FALLÓ]
Iniciando saslauthd: [ OK ]
[root@a211 mail]# service saslauthd restart
Parando saslauthd: [ OK ]
Iniciando saslauthd: [ OK ]
[root@a211 mail]# service dovecot restart
Parando Dovecot Imap: [ OK ]
Iniciando Dovecot Imap: [ OK ]
[root@a211 mail]#
#####################################################################
[root@a211 mail]# cd /usr/share/squirrelmail/config/
[root@a211 config]# ./conf.pl ----> enter para configurar los datos del la empresa
__________________________
cambiando el idioma
1. Organization Preferences
____________________
Language preferences
1. Default Language : en_US
2. Default Charset : iso-8859-1
3. Enable lossy encoding : false
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> 1
SquirrelMail attempts to set the language in many ways. If it
can not figure it out in another way, it will default to this
language. Please use the code for the desired language.
[en_US]: es_ES
S
____________________________
configurando el dominio
2. Server Settings
_____________________________
-------
1. Domain : localhost --> aki cambiaria el dominio
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (uw)
B. Change Sendmail Config : /usr/sbin/sendmail
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >>
________________________________-
3. Folder Defaults
____________________________________
Folder Defaults
1. Default Folder Prefix : mail/
2. Show Folder Prefix Option : true
3. Trash Folder : BORRADOS
4. Sent Folder : ENVIADOS
5. Drafts Folder : RECIBIDOS
6. By default, move to trash : true
7. By default, move to sent : true
8. By default, save as draft : true
9. List Special Folders First : true
10. Show Special Folders Color : true
11. Auto Expunge : true
12. Default Sub. of INBOX : false
13. Show 'Contain Sub.' Option : true
14. Default Unseen Notify : 2
15. Default Unseen Type : 1
16. Auto Create Special Folders : true
17. Folder Delete Bypasses Trash : false
18. Enable /NoSelect folder fix : false
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> S
z