postfix bug from hell

linuxnubuk

New Member
Joined
Nov 22, 2020
Messages
1
Reaction score
0
Credits
36
Postfix Bug from hell
Hi, all so I am New to Linux questions and my background is light user and I understand how to update code but not wite it ( sorry to say ) :-(

so if anyone could help me with this bug I would be so grateful as I have been trying to fix it for over 1 year and still can't work it out and now I am admitting defeat up to this point.

So how did this all start I hear you ask, well it all started with when I had someone set up a postfix system for me that used my old HostGator account to send emails thru, but not I have moved to a new host, and every time I update these files on the postfix setup I keep getting these messages from within the mail log output file listed below, I have tried to update the DB file but keep getting the same error can any please help me with this?

ps if its any help when I say I updated the relay_passwords.db I did this with a plain text editor and then reuploaded it again and did a postfix reload command.
----------------------------------------------------

Nov 22 10:44:30 postfix/smtp[15444]: fatal: open database /etc/postfix/relay_passwords.db: Invalid argument
Nov 22 10:44:31 postfix/master[2749]: warning: process /usr/libexec/postfix/smtp pid 15444 exit status 1
Nov 22 10:44:31 postfix/master[2749]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Nov 22 10:44:31 postfix/pickup[2751]: 59018280C05: uid=500 from=<root>
Nov 22 10:44:31 postfix/cleanup[2994]: 59018280C05: message-id=<[email protected]>
Nov 22 10:44:31 postfix/qmgr[2752]: 59018280C05: from=<[email protected]>, size=915, nrcpt=1 (queue active)
Nov 22 10:44:31 postfix/local[2996]: 59018280C05: to=<[email protected]>, orig_to=<asterisk>, relay=local, delay=0.$
Nov 22 10:44:31 postfix/cleanup[2994]: 5C08E280C06: message-id=<[email protected]>
Nov 22 10:44:31 postfix/qmgr[2752]: 5C08E280C06: from=<>, size=2919, nrcpt=1 (queue active)
Nov 22 10:44:31 postfix/bounce[2999]: 59018280C05: sender non-delivery notification: 5C08E280C06
Nov 22 10:44:31 postfix/qmgr[2752]: 59018280C05: removed
Nov 22 10:44:31 postfix/local[2996]: 5C08E280C06: to=<[email protected]>, relay=local, delay=0.01, delays=0/0/0/0, dsn=$
Nov 22 10:44:31 postfix/qmgr[2752]: 5C08E280C06: removed
Nov 22 10:45:20 postfix/pickup[2751]: B3D4B280C04: uid=500 from=<root>
Nov 22 10:45:20 postfix/cleanup[2994]: B3D4B280C04: message-id=<[email protected]>
Nov 22 10:45:20 postfix/qmgr[2752]: B3D4B280C04: from=<[email protected]>, size=915, nrcpt=1 (queue active)
Nov 22 10:45:20 postfix/local[2996]: B3D4B280C04: to=<[email protected]>, orig_to=<asterisk>, relay=local, delay=0.$
Nov 22 10:45:20 postfix/cleanup[2994]: B706F280C06: message-id=<[email protected]>
Nov 22 10:45:20 postfix/qmgr[2752]: B706F280C06: from=<>, size=2919, nrcpt=1 (queue active)
Nov 22 10:45:20 postfix/bounce[2999]: B3D4B280C04: sender non-delivery notification: B706F280C06
Nov 22 10:45:20 postfix/qmgr[2752]: B3D4B280C04: removed
$, dsn=$Nov 22 10:44:30 postfix/smtp[15444]: fatal: open database /etc/postfix/relay_passwords.db: Invalid argument
windows_10
linuxnubuk is offline
Edit Message
 


Since you mentioned you are uploading the files to update them you could try the following.
Install dos2unix.
Deb based distro: apt-get install dos2unix
Rpm based distro: yum install dos2unix
And then run the command.
Code:
dos2unix /etc/postfix/relay_passwords
And then run the postfix command again.
Code:
postmap /etc/postfix/relay_passwords
The easier option to avoid this problem in the future will probably be to edit the file directly on the system running the postfix instance using vim or nano.
 
Last edited:

Members online


Top