8.4 C
New York
Tuesday, November 19, 2024

e-mail – Postfix testing fails


I need assistance with postfix. Testing with this command:

echo "check e-mail" | mail -s  "check e-mail" [email protected]```

Would not produce output in /var/mail/jeff

postfix is working:

sudo postfix standing
postfix/postfix-script: the Postfix mail system is working: PID: 8781

I additionally do not see postfix log exercise in /var/log/ or by way of:

 sudo log stream --predicate 'sender == "postfix"'

My important.cf file is included.

compatibility_level = 2
queue_directory = /personal/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

Testing with telnet:

jeff@m1 Desktop $ telnet localhost 25
Making an attempt ::1...
telnet: join to handle ::1: Connection refused
Making an attempt 127.0.0.1...
Linked to localhost.
Escape character is '^]'.
220 m1.lan ESMTP Postfix
ehlo localhost
mail from: jeff@localhost
rcpt to: jeff@localhost
information
Topic: My first mail on Postfix

hi there world
250-m1.lan
250-PIPELINING
250-SIZE 10485760
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 SMTPUTF8
250 2.1.0 Okay
250 2.1.5 Okay
354 Finish information with .

.
250 2.0.0 Okay: queued as 016CF5AB29C7
^]
telnet> give up
Connection closed.
jeff@m1 Desktop $ mailq
Mail queue is empty

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles