freebsd-update won't update .cf files cause they changed

drhowarddrfine

Son of Beastie

Reaction score: 2,410
Messages: 4,364

The files in /etc/mail freebsd.cf, sendmail.cf and submit.cf have changed, probably cause at one time I edited their respectful .mc files but it's been a long time. freebsd-update says these files are affected by updates but won't change them cause they've been modified locally.

I can make a copy but do I delete the original? will freebsd-update restore those files so I can redo my changes?

I don't know what I should do.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,708
Messages: 39,306

I can make a copy but do I delete the original? Will freebsd-update restore those files so I can redo my changes?
Yes, it should. I'd save the files somewhere safe, just in case. Then delete them and run the update.
 

kpa

Beastie's Twin

Reaction score: 1,848
Messages: 6,318

For the future, you never need to edit those files for any reason other than merging conflicts that might occur on upgrades (and even on those you can just select install the new file). The correct way to use them is to let make create the host specific files ${HOSTNAME}.mc and ${HOSTNAME}.submit.mc and only edit those.
 
OP
D

drhowarddrfine

Son of Beastie

Reaction score: 2,410
Messages: 4,364

kpa I'm aware of that but these were set up three years ago when I first set up sendmail. So I may have edited the .mc files cause I didn't know what I was doing. Not that I do now but ... you know.
 

Daniel_R

New Member

Reaction score: 6
Messages: 7

Clean versions of the .cf files can be found in the /var/db/etcupdate/current/etc/mail directory. Copying these to /etc/mail makes freebsd-update(8) happy.

Unfortunately, calling make install in /etc/make overwrites these .cf files again.
 
OP
D

drhowarddrfine

Son of Beastie

Reaction score: 2,410
Messages: 4,364

I copied one of those over to /etc/mail/ but that didn't fix anything. I noticed the dates were the same but the file sizes were different. A diff shows a minor change I made to include zenspamhaus.
 
Top