Sendmail is configured to use procmail.
I am sending testmails locally.
Local mail delivery agent is procmail.
Code:
LOGFILE= /maildir/pm.log
VERBOSE= on
MAILDIR=/maildir
This was /etc/procmailrc file. I can't even see logfile, its not just created. /maildir owner user is
root and group is
mail and group has rwx perms. I am really fixed...
EDIT: When I saw maillog, I found procmail is giving error while writing log to /maildir/pm.log :-S
And finally I find its SELinux...
I setenforce 0 and set proper context of /maildir file now I can see the log and I identified problem. Here's it.
It assigns MAILDIR properly but LASTFOLDER again change it to old location, even I set LASTFOLDRE in procmailrc, it again change that variable and I can't get mail into /maildir folder.
Now I added new user and sent mail again. Log shows something diff. Even MAILDIR and LASTFOLDER are perfect, in the end its
Folder: /var/mail/user
Ok I think its enough info for someone to identify my dumb prob