Solved Sendmail Postfix : Error

Hi,
I've this error when I'm trying to send an email from PHP
Code:
Jun 17 08:38:30 admin-grav7-01-adm sendmail[38953]: 25H8cUUc038953: Authentication-Warning: admin-grav7-01-adm.tld.local: www set sender to contact@tld.com using -f
I'll try a lot of things like add trusted-users but doesn't work

Code:
root@admin-grav7-01-adm:/etc/mail # ls -lha
total 547
drwxr-xr-x   3 root  wheel    27B Jun 17 08:26 .
drwxr-xr-x  25 root  wheel   116B Jun 17 08:36 ..
-rw-r--r--   1 root  wheel   648B Apr 16  2021 access
-rw-r-----   1 root  wheel   128K Jun 17 07:23 access.db
-rw-r--r--   1 root  wheel   632B Dec 16  2021 access.sample
-rw-r--r--   1 root  wheel    58K Jun 17 08:02 admin-grav7-01-adm.cf
-rw-r--r--   1 root  wheel   4.6K Jun 17 08:02 admin-grav7-01-adm.mc
-rw-r--r--   1 root  wheel    41K Jun 17 07:23 admin-grav7-01-adm.submit.cf
-r--r--r--   1 root  wheel   908B Jun 17 07:23 admin-grav7-01-adm.submit.mc
-rw-r--r--   1 root  wheel   1.7K Dec 16  2021 aliases
-rw-r-----   1 root  wheel   128K Jun 17 07:23 aliases.db
drwxr-xr-x   2 root  wheel     6B Feb  1  2021 certs
-rw-r--r--   1 root  wheel    58K Dec 16  2021 freebsd.cf
-rw-r--r--   1 root  wheel   4.4K Dec 16  2021 freebsd.mc
-r--r--r--   1 root  wheel    41K Dec 16  2021 freebsd.submit.cf
-r--r--r--   1 root  wheel   908B Dec 16  2021 freebsd.submit.mc
-r--r--r--   1 root  wheel   5.5K Nov  1  2019 helpfile
-rw-r--r--   1 root  wheel   486B Dec 16  2021 mailer.conf
-rw-r--r--   1 root  wheel   248B Dec 16  2021 mailertable.sample
-rw-r--r--   1 root  wheel   6.7K Dec 16  2021 Makefile
-rw-r--r--   1 root  wheel   2.8K Dec 16  2021 README
-rw-r--r--   1 root  wheel    58K Jun 16 12:44 sendmail.cf
-rw-r--r--   1 root  wheel    58K Jun 17 08:13 sendmail.cf.old
-r--r--r--   1 root  wheel    41K Dec 16  2021 submit.cf
-rwxrwxrwx   1 root  wheel     4B Jun 16 15:18 trusted-users
-rw-r--r--   1 root  wheel   574B Dec 16  2021 virtusertable.sample

Code:
root@admin-grav7-01-adm:/etc/mail # uname -a
FreeBSD admin-grav7-01-adm 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC  amd64

Please help, I think the file mc is not use.

Thank you,
Regards,
 
Postfix and sendmail are two different mail transfer agents. Your sendmail issue has nothing to do with Postfix.

Keep in mind that FreeBSD 12.2 has been EoL since the end of March 2022. You should upgrade to 12.3 some time soon.
 
sendmail doesn't run, only postfix run on my web server.
If sendmail doesn't run, why are you editing sendmail's configuration files? The *.cf and *.mc files in /etc/mail/ are for sendmail(8).

Please post the contents of /etc/mail/mailer.conf and the output of ps -aux | grep sendmail and ps -aux | grep postfix.
 
If sendmail doesn't run, why are you editing sendmail's configuration files? The *.cf and *.mc files in /etc/mail/ are for sendmail(8).

Please post the contents of /etc/mail/mailer.conf and the output of ps -aux | grep sendmail and ps -aux | grep postfix.
Hi,
Code:
root@admin-grav7-01-adm:/etc/mail # ps -aux | grep sendmail
root    40280  0.0  0.1  11564  2516  2  S+   10:23        0:00.01 grep sendmail
root@admin-grav7-01-adm:/etc/mail # 
root@admin-grav7-01-adm:/etc/mail # ps -aux | grep postfix
root    40221  0.0  0.4  52404  8428  -  Ss   10:20        0:00.03 /usr/local/libexec/postfix/master -w
postfix 40222  0.0  0.4  52404  8448  -  I    10:20        0:00.01 pickup -l -t unix -u
postfix 40223  0.0  0.4  52512  8528  -  I    10:20        0:00.02 qmgr -l -t unix -u
root    40282  0.0  0.0    532   332  2  R+   10:23        0:00.00 grep postfix

I'll try to change some value but nothing change. I received the email but I alway same error
Code:
Jun 17 08:38:30 admin-grav7-01-adm sendmail[38953]: 25H8cUUc038953: Authentication-Warning: admin-grav7-01-adm.tld.local: www set sender to contact@tld.com using -f

Thank you,
Regards,
 
Ok, good, it's indeed Postfix.

What is the content of /etc/mail/mailer.conf though? /usr/sbin/sendmail is a wrapper that uses mailer.conf(5) to determine what actually gets executed.
Nope. Do I must change the path ?

Code:
root@admin-grav7-01-adm:/etc/mail # cat /etc/mail/mailer.conf
# $FreeBSD: releng/12.2/etc/mail/mailer.conf 363973 2020-08-06 18:13:45Z kevans $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
# If dma(8) is installed, an example mailer.conf that uses dma(8) instead can
# can be found in /usr/share/examples/dma.
#
sendmail    /usr/libexec/sendmail/sendmail
mailq        /usr/libexec/sendmail/sendmail
newaliases    /usr/libexec/sendmail/sendmail
hoststat    /usr/libexec/sendmail/sendmail
purgestat    /usr/libexec/sendmail/sendmail
 
Do I must change the path ?
mail/postfix pkg-message instructs you to change it.

For Postfix it should look like this:
Code:
#
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
#
sendmail	/usr/local/sbin/sendmail
send-mail	/usr/local/sbin/sendmail
mailq		/usr/local/sbin/sendmail
newaliases	/usr/local/sbin/sendmail
 
Done I change it
Code:
root@admin-grav7-01-adm:/etc/mail # cat /etc/mail/mailer.conf
# $FreeBSD: releng/12.2/etc/mail/mailer.conf 363973 2020-08-06 18:13:45Z kevans $
#
# Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail
#
# If dma(8) is installed, an example mailer.conf that uses dma(8) instead can
# can be found in /usr/share/examples/dma.
#
#sendmail    /usr/libexec/sendmail/sendmail
#mailq        /usr/libexec/sendmail/sendmail
#newaliases    /usr/libexec/sendmail/sendmail
#hoststat    /usr/libexec/sendmail/sendmail
#purgestat    /usr/libexec/sendmail/sendmail

#
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
#
sendmail    /usr/local/sbin/sendmail
send-mail    /usr/local/sbin/sendmail
mailq        /usr/local/sbin/sendmail
newaliases    /usr/local/sbin/sendmail

but I've a new error :

Code:
Jun 17 11:00:52 admin-grav7-01-adm postfix/smtp[42310]: warning: unsupported SASL client implementation: cyrus
Jun 17 11:00:52 admin-grav7-01-adm postfix/smtp[42310]: fatal: SASL library initialization
I'm using SASL because I've an external relay SMTP

Thank you,
Regards,
 
Back
Top