Sendmail Error Logs and Solutions
When running the sendmail service: \\\* ERROR: FEATURE() should be before MAILER() ERROR: FEATURE() should be before MAILER() MAILER(alwaysadddomain') ERROR: FE
1. When running the sendmail service: *** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER() *** MAILER(local') must appear after FEATURE(always_add_domain')*** ERROR: FEATURE() should be before MAILER() *** MAILER(local') must appear after FEATURE(allmasquerade')*** ERROR: FEATURE() should be before MAILER()
Modify the last few lines of sendmail.mc.
vi /etc/mail/sendmail.mc
In the document, the
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
Add to the end of the document.
2. When sending mail, the error "Cannot write ./dft4D3WxZ2020101 (bfcommit, uid=0, gid=113): Permission denied" appears
Set the user, group, and permissions of the following folders.
drwxrws--- 2 smmta smmta 4096 May 13 11:33 mqueue
drwxrws--- 2 smmsp smmsp 4096 May 13 11:37 mqueue-client
3. Email is returned with the error 500 Error: bad syntax
----- Transcript of session follows -----
... while talking to mxn.mxhichina.com.:
MAIL From:<user@localhost> BODY=8BITMIME
<<< 500 Error: bad syntax
554 5.0.0 Service unavailable
Modify /etc/mail/sendmail.cf, comment out the following line
# DMlocalhost
Or edit /etc/mail/sendmail.mc, comment out the line below, and run "m4 sendmail.mc > sendmail.cf"
dnl MASQUERADE_AS(`localhost')dnl # Comments in this file start with "dnl" at the beginning of the line
4. sh: 0: getcwd() failed: No such file or directory
After deleting a certain directory, if the command is still in that directory, this error will appear. Switch to another directory and the error will go away.
5. After changing sendmail and dovecot to the maildir format, the outbox and sent folders are normal, but there are no emails in the inbox. Checking the files in "/var/mail/", I found that sendmail is still in mailbox format.
Refer to the article "Debian Linux 7.0 Sendmail/Dovecot Mail Directory Maildir Settings" and check whether the "/etc/procmailrc" file has been modified.
6. imap-login: Fatal: Can't load private ssl_key: Key is for a different cert than ssl_cert
The cause of this error is usually that the entire "dovecot" configuration file was copied directly into the "/etc/dovecot" directory, overwriting the original certificate in that directory. The solution is to copy the certificate "dovecot.pem" file and the "private" directory from "/usr/share/dovecot" instead.
评论Comments
加载中…Loading…
留下评论Leave a comment