Solved FreeBSD 12.4 update to FreeBSD 13.2

I've upgraded the FreeBSD version from 12.4 to 13.2-RELEASE-p9 which has gone well except for mail/sendmail which is no longer working.

If I try to service sendmail restart I get errors showing about both the sendmail.cf and submit.cf files with "Invalid rewrite lines" ...

Code:
554 5.0.0 /etc/mail/sendmail.cf: line 687: invalid rewrite line "R@                        @ <@>" (tab expected)

/etc/mail/submit.cf: line 623: invalid rewrite line "R@                        @ <@>" (tab expected)

There are a lot more of the above lines but they all point to "tab expected".

I did note that both files couldn't be merged during the update and when I go to the /etc/mail/ folder both files had been replaced and backups of the originals created. However putting back the original files made no difference.

Any ideas?
 
Have you modified the ".mc" or ".cf" files in the past?

I'd take a copy of the entire /etc/mail directory for safe keeping.

Then stop sendmail.

Then, cd /etc/mail

Then copy freebsd.mc to <your host's domain name>.mc

Then copy freebsd.submit.mc to <your host's domain name>.submit.mc

Make any local changes to the ".mc" files named for your domain.

Then make install

Then restart sendmail.
 
I found the issue in the end. I'm using mail/opendkim and for some reason I had to go through the setup of it again which thankfully fixed sending of emails.
 
Back
Top