Necesito ayuda con postfix. Probando con este comando:
echo "correo de prueba" | mail -s "correo de prueba" jeff@m1.lan```
No produce salida en /var/mail/jeff
postfix está en ejecución:
sudo postfix status
postfix/postfix-script: el sistema de correo Postfix está en ejecución: PID: 8781
Tampoco veo actividad de registro de postfix en /var/log/ o a través de:
sudo log stream --predicate 'sender == "postfix"'
Mi archivo main.cf está incluido.
compatibility_level = 2
queue_directory = /private/var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = _postfix
unknown_local_recipient_reject_code = 550
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = _postdrop
html_directory = /usr/share/doc/postfix/html
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix/examples
readme_directory = /usr/share/doc/postfix
message_size_limit = 10485760
mailbox_size_limit = 0
biff = no
inet_interfaces = all
inet_protocols = ipv4
myhostname = m1.lan
mydestination = m1.lan, localhost.localdomain, localhost
myorigin = m1.lan
relayhost =
mynetworks = 127.0.0.0/8 192.168.1.0/24 172.18.0.0/16 172.19.0.0/16 172.17.0.0/16
mailbox_size_limit = 0
recipient_delimiter = +
default_transport = smtp
relay_transport = smtp
smtpd_relay_restrictions = permit_mynetworks, reject_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
Probando con telnet:
jeff@m1 Desktop $ telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 m1.lan ESMTP Postfix
ehlo localhost
mail from: jeff@localhost
rcpt to: jeff@localhost
data
Subject: Mi primer correo en Postfix
hola mundo
250-m1.lan
250-PIPELINING
250-SIZE 10485760
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 SMTPUTF8
250 2.1.0 Ok
250 2.1.5 Ok
354 End data with .
.
250 2.0.0 Ok: en cola como 016CF5AB29C7
^]
telnet> quit
Connection closed.
jeff@m1 Desktop $ mailq
La cola de correo está vacía