08225, Terrassa (Barcelona)
Soporte Técnico
Sábados a convenir
Cita de admin en 3 agosto, 2020, 9:25 amInstalar fetchmail
dnf install fetchmail
Instalar deletemail
dnf install make
dnf install gcc
wget ftp://ftp.jhweiss.de/pub/users/weiss/deletemail/deletemail-0.5.tar.gz
tar -xvf deletemail-0.5.tar.gz
./configure
make
make install
Instalar fetchmail
dnf install fetchmail
Instalar deletemail
dnf install make
dnf install gcc
wget ftp://ftp.jhweiss.de/pub/users/weiss/deletemail/deletemail-0.5.tar.gz
tar -xvf deletemail-0.5.tar.gz
./configure
make
make install
Cita de admin en 3 agosto, 2020, 9:49 amejemplo .fetchmailrc
poll ssl0.ovh.net protocol pop3:
username "sebas@herputrans.es" password "firewallgnu3#" is "herputrans" here; (keep)
ejemplo .fetchmailrc
poll ssl0.ovh.net protocol pop3:
username "sebas@herputrans.es" password "firewallgnu3#" is "herputrans" here; (keep)
Cita de admin en 3 agosto, 2020, 9:52 amsystemd demonio servicio.
[Unit]
Description=fetchmail service
After=network.target[Service]
Type=simple
User=root
ExecStart=/usr/bin/fetchmail -d 180
Restart=on-abort[Install]
WantedBy=multi-user.target
systemd demonio servicio.
[Unit]
Description=fetchmail service
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/fetchmail -d 180
Restart=on-abort
[Install]
WantedBy=multi-user.target
Cita de admin en 4 agosto, 2020, 9:38 amconfiguración postfix , dovecot
[root@mail ~]# dnf -y install dovecot
[2] This example shows to configure to provide SASL function to Postfix.
[root@mail ~]#vi /etc/dovecot/dovecot.conf# line 30: uncomment (if not use IPv6, remove [::])listen = *, ::
[root@mail ~]#vi /etc/dovecot/conf.d/10-auth.conf# line 10: uncomment and change (allow plain text auth)disable_plaintext_auth =
no# line 100: addauth_mechanisms = plain
login[root@mail ~]#vi /etc/dovecot/conf.d/10-mail.conf# line 30: uncomment and addmail_location =
maildir:~/Maildir[root@mail ~]#vi /etc/dovecot/conf.d/10-master.conf# line 96-98: uncomment and add like follows# Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix group = postfix }
[root@mail ~]#vi /etc/dovecot/conf.d/10-ssl.conf# line 8: change (not require SSL)ssl =
yes[root@mail ~]#
systemctl enable --now dovecot
[3] If Firewalld is running, allow POP/IMAP service. POP uses [110/TCP], IMAP uses [143/TCP].
[root@mail ~]# firewall-cmd --add-service={pop3,imap} --permanentsuccess
[root@mail ~]#firewall-cmd --reloadsuccess
[root@mail ~]#vi /etc/postfix/main.cf# line 95: uncomment and specify hostnamemyhostname =
mail.srv.world# line 102: uncomment and specify domain namemydomain =
srv.world# line 118: uncommentmyorigin = $mydomain
# line 135: changeinet_interfaces =
all# line 138: change it if use only IPv4inet_protocols =
ipv4# line 183: addmydestination = $myhostname, localhost.$mydomain, localhost
, $mydomain# line 283: uncomment and specify your local networkmynetworks = 127.0.0.0/8,
10.0.0.0/24# line 438: uncomment (use Maildir)home_mailbox = Maildir/
# line 593: addsmtpd_banner = $myhostname ESMTP# add follows to the end# for example, limit an email size for 10M message_size_limit = 10485760 # for example, limit a mailbox for 1G mailbox_size_limit = 1073741824 # SMTP-Auth setting smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject[root@mail ~]#
systemctl enable --now postfix
[3] If Firewalld is running, allow SMTP service. SMTP uses [25/TCP].
[root@mail ~]# firewall-cmd --add-service=smtp --permanentsuccess
[root@mail ~]#firewall-cmd --reloadsuccess
configuración postfix , dovecot
[root@mail ~]#
dnf -y install dovecot
|
[2] | This example shows to configure to provide SASL function to Postfix. |
[root@mail ~]#
vi /etc/dovecot/dovecot.conf
# line 30: uncomment (if not use IPv6, remove [::])
listen = *, :: [root@mail ~]#
vi /etc/dovecot/conf.d/10-auth.conf
# line 10: uncomment and change (allow plain text auth)
disable_plaintext_auth = no
# line 100: add
auth_mechanisms = plain login
[root@mail ~]#
vi /etc/dovecot/conf.d/10-mail.conf
# line 30: uncomment and add
mail_location = maildir:~/Maildir
[root@mail ~]#
vi /etc/dovecot/conf.d/10-master.conf
# line 96-98: uncomment and add like follows
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
[root@mail ~]#
vi /etc/dovecot/conf.d/10-ssl.conf
# line 8: change (not require SSL)
ssl = yes
[root@mail ~]# systemctl enable --now dovecot
|
[3] | If Firewalld is running, allow POP/IMAP service. POP uses [110/TCP], IMAP uses [143/TCP]. |
[root@mail ~]#
firewall-cmd --add-service={pop3,imap} --permanent
success firewall-cmd --reload
success |
[root@mail ~]#
vi /etc/postfix/main.cf
# line 95: uncomment and specify hostname
myhostname = mail.srv.world
# line 102: uncomment and specify domain name
mydomain = srv.world
# line 118: uncomment
myorigin = $mydomain # line 135: change
inet_interfaces = all
# line 138: change it if use only IPv4
inet_protocols = ipv4
# line 183: add
mydestination = $myhostname, localhost.$mydomain, localhost , $mydomain
# line 283: uncomment and specify your local network
mynetworks = 127.0.0.0/8, 10.0.0.0/24
# line 438: uncomment (use Maildir)
home_mailbox = Maildir/ # line 593: add
smtpd_banner = $myhostname ESMTP
# add follows to the end
# for example, limit an email size for 10M message_size_limit = 10485760 # for example, limit a mailbox for 1G mailbox_size_limit = 1073741824 # SMTP-Auth setting smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject [root@mail ~]# systemctl enable --now postfix
|
[3] | If Firewalld is running, allow SMTP service. SMTP uses [25/TCP]. |
[root@mail ~]#
firewall-cmd --add-service=smtp --permanent
success firewall-cmd --reload
success |
© Informàtica Can Boada All rights reserved