Mike, Thank you for your reply. I took a virtual server with VPS. OS is Red Hat Enterprise Linux, and the names of config files are those I wrote. If I include mailer(dbmail) in sendmail.mc then sendmail includes lines about dbmail in sendmail.cf, but it doesn't work. My server name is the same as domain name so as I understood I can't use mailertable, and I don't know what to do with this. There was preinstalled software including sendmail, it wasn't my choice. I hoped to work with dbmail and sendmail without installing new MTA. Of course if I can't find a solution, I will install Postfix. How does Postfix work in very large mail systems - hundreds thousand of users?
Thanks, Dmitry Dmitry: On Red Hat shouldn't that be /etc/mail/'hostname'.mc/cf instead of sendmail.mc/cf? Is /usr/share/sendmail-cf/mailer/dbmail.m4 readable by sendmail? Anyway, nothing you have said explains why you would use Sendmail instead of Postfix with DBMail. You make a pretty good case for *not* using sendmail. Your configs actually look good as best I can tell. In one instance I use Sendmail because I could not force myself to give up my MimeDefang on a server that's been around as long as SM just about. I had to fight with the configs -- nothing smooth about it -- so everything else is Postfix for that reason among others. You certainly are right about the outdated instructions. And dbmail.m4 is deprecated as it stands. When I look at Postfix 2.3 (dev) and see the future of that MTA, the configuration crankiness of the otherwise incredible Sendmail pushes sendmail to second place. I type feverishly "wget me some postfix". :o) Try it. You'll like it. You can read INSTALL and INSTALL.postfix in the dbmail tarball to get the drift on how its done. A shout-out on this listmail will get you lots of generous replies form many Postfix/DBMail experts should you decide to go that route. best... Mike ----- Original Message ----- From: "Dmitry Broytman" <broytman at gmail.com <https://mailman.fastxs.nl/mailman/listinfo/dbmail>> To: <dbmail at dbmail.org <https://mailman.fastxs.nl/mailman/listinfo/dbmail>> Sent: Monday, March 20, 2006 1:37 PM Subject: [Dbmail] sendmail-procmail problems Hello everybody, I have Red Hat Enterprise Linux AS 3 with sendmail 8.12.11 and procmail. I tried to install dbmail 2.0.9 and configure sendmail to work with it. dbmail installation was successful I think because I can see the database and created there some users with dbmail-users. But with configuring of sendmail started troubles. There are not file about sendmail configuration in install archive so I followed this docs: http://www.helgrim.com/dbmaildocs/installation.html. Here is a list of my actions *1. * Copied file: http://www.helgrim.com/dbmaildocs/files/dbmail.m4 to /usr/share/sendmail-cf/mailer *2. * Added in the end of sendmail .mc : MAILER(dbmail) dnl *4. * Rebuilt my sendmail.cf : # /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail-cf/ /usr/share/sendmail-cf/m4/cf.m4 sendmail.mc > sendmail.cf *5. * Added in mailertable (it was blank): abcmail.ru dbmail:abcmail.ru *6. * Rebuilt mailertable . db : # makemap hash / etc/ mail/ mailertable. db < / etc/ mail/ mailertable and restart server to restart sendmail. ** No results - mail received not in database, but in file var/ spool/ vmail/abcmail .. ru/ mail/ broytman * 7. * Understood that my server name is the same as domain name and tried to comment it in / etc/ mail/ local- host- names: ###abcmail.ru Restarted server, no results. *8. *Corrected dbmail to dbmail- smtp in /usr/share /sendmail- cf/ mailer/ dbmail. m4: ifdef(`DBMAIL_MAILER_ARGS',, `define(`DBMAIL_MAILER_ARGS', `dbmail-smtp -d $u')') *9. *Rebuilt sendmail.cf: # /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail-cf/ /usr/share/sendmail-cf/m4/cf.m4 sendmail.mc > sendmail.cf Restarted server again. No results. ** Looked through this mailing list and found some advices. Tried to follow them: *10. *Added in the end of sendmail. mc (before mailer(…)) : define(`LOCAL_MAILER_PATH', `/usr/sbin/dbmail-smtp')dnl define(`LOCAL_MAILER_ARGS', `dbmail-smtp -d $u')dnl *11. Rebuilt *sendmail.cf : # /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail-cf/ /usr/share/sendmail-cf/m4/cf.m4 sendmail.mc > sendmail.cf Restarted server again. No results. *12. * Returned all files in the state before changes. *15. * Tried to cheat procmail - changed path and args in procmail. m4: ifdef(`PROCMAIL_MAILER_PATH',, `ifdef(`PROCMAIL_PATH', `define(`PROCMAIL_MAILER_PATH', PROCMAIL_PATH)', `define(`PROCMAIL_MAILER_PATH', /usr/local/sbin/dbmail-smtp)')') _DEFIFNOT(`PROCMAIL_MAILER_FLAGS', `SPhnu9') ifdef(`PROCMAIL_MAILER_ARGS',, `define(`PROCMAIL_MAILER_ARGS', `dbmail-smtp -d $u')') define(`_PROCMAIL_QGRP', `ifelse(defn(`PROCMAIL_MAILER_QGRP'),`',`', ` Q=PROCMAIL_MAILER_QGRP,')')dnl *16. * Replaced in sendmail .mc: define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl to define(`PROCMAIL_MAILER_PATH',`/usr/local/sbin/dbmail-smtp')dnl *17. * Rebuilt sendmail.cf : Restarted server. No results. *18. *More changes in sendmail. cf: Mlocal, P=/usr/local/sbin/dbmail-smtp, F= lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=procmail -t -Y -a $h -d $u to Mlocal, P=/usr/local/sbin/dbmail-smtp, F= lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A= dbmail-smtp -d $u Restarted server. No results. Returned all files in their original state before changes. I really have very little experience with sendmail and procmail so perhaps my actions are absolutely wrong. Configuration files (sendmail.mc, sendmail.cf, procmail.m4, dbmail.m4 and others I have copied here: http://www.abcmail.ru/dbmail/ Perhaps I have to use not dbmail-smtp but dbmail-lmtpd? Any help will be highly appreciated. Thanks. Dmitry
