More on failure to send message as a normal user - tried the following:
# /etc/init.d/exim4 stop
# rm -rf /var/log/exim4
# rm -rf /var/spool/exim4
# dpkg --purge exim4
# apt-get install exim4
# dpkg-reconfigure exim4-config (content of update-exim4.conf.conf
attached. There was a question, "System mail name: " which I answered
mail.tomgeorge.info. This answer does not appear in
update-exim4.conf.conf. Why?)
# update-exim4.conf
$ exim4 mail at tomgeorge.info
test
.
Result: Failed to create file /var/spoo/exim4/info: Permission denied.
# exim4 mail at tomgeorge.info
test
.
Failed because there is no directory /var/log/exim4
# mkdir /var/log/exim4
# chown Debian-exim:adm /var/log/exim4
# chmod 2750 /var/log/exim4
# exim4 mail at tomgeorge.info
test
.
Result: Message sent and received.
$ exim4 mail at tomgeorge.info
test
.
Result: Failed to create file /var/spoo/exim4/info: Permission denied.
There is no directory /var/spool/exim4/info. Should I create one? If
so, what ownership and permissions?
Before I erased /var/spool/exim4 and subdirectories above there was a
directory /var/spool/exim4/info. When I tried to send messages as tom I
did not received any messages regarding /var/spool/exim4/info but rather
a permission denied message regarding /var/spool/exim4/msglog.
So root can send mail, tom cannot.
What is wrong and how can I fix it?
Tom
------------------------------------------------------------------------
dc_eximconfig_configtype=''smarthost''
dc_other_hostnames=''''
dc_local_interfaces=''127.0.0.1''
dc_readhost=''''
dc_relay_domains=''''
dc_minimaldns=''false''
dc_relay_nets=''''
dc_smarthost=''outgoing.verizon.net''
CFILEMODE=''644''
dc_use_split_config=''false''
dc_hide_mailname=''false''
dc_mailname_in_oh=''true''
dc_localdelivery=''mail_spool''
On Tue, Oct 21, 2008 at 10:05:10AM -0400, Thomas H. George wrote:> More on failure to send message as a normal user - tried the following: > > # /etc/init.d/exim4 stop > # rm -rf /var/log/exim4 > # rm -rf /var/spool/exim4Brilliant idea. dpkg -s /var/spool/exim4 and grep log/exim4 /var/lib/dpkg/info/exim4* tell you which package is responsible for this directories.> What is wrong and how can I fix it?Try to reinstall or purge and install exim4-base. -- Nicht Absicht unterstellen, wenn auch Dummheit ausreicht! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20081021/b61bec7c/attachment.pgp
Hi, On Tue, Oct 21, 2008 at 04:20:58PM +0200, Martin Reising wrote:> dpkg -s /var/spool/exim4no, it''s "dpkg -S". And it doesn''t report a package that this directory belongs to. But with the rest you are right, of course. exim4-base and exim4-daemon-* should be the right packages to reinstall, i guess? Best regards, Lothar
On Tue, Oct 21, 2008 at 04:35:58PM +0200, Lothar Ketterer wrote:> On Tue, Oct 21, 2008 at 04:20:58PM +0200, Martin Reising wrote: > > dpkg -s /var/spool/exim4 > > no, it''s "dpkg -S".You are right; damed typo.> And it doesn''t report a package that this directory belongs to.This is only right for etch und etch-backports, but lenny and sid show exim4-base.> But with the rest you are right, of course. exim4-base and > exim4-daemon-* should be the right packages to reinstall, i guess?Since exim4-daemon-* are depending on exim4-base this is resonable solution. But reinstall could be fail if the package pre- and/or post-install behave diffrently between install+config and reinstall. In this case pruge and install is the easiest solution. -- Nicht Absicht unterstellen, wenn auch Dummheit ausreicht! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20081021/9523644b/attachment.pgp
On Tue, 2008-10-21 at 10:05 -0400, Thomas H. George wrote:> Result: Failed to create file /var/spoo/exim4/info: Permission denied.> > Result: Failed to create file /var/spoo/exim4/info: Permission denied./spoo/ : typo in the e-mail message or typo during configuration?>> There is no directory /var/spool/exim4/info. Should I create one?Andreas -- "Liberty consists less in acting according to one''s own pleasure, than in not being subject to the will and pleasure of other people. It consists also in our not subjecting the wills of other people to our own." Rousseau Prof. Dr. Andreas J. Guelzow Dept. of Mathematical & Computing Sciences Concordia University College of Alberta
Andreas J Guelzow wrote:> On Tue, 2008-10-21 at 10:05 -0400, Thomas H. George wrote: > > >> Result: Failed to create file /var/spoo/exim4/info: Permission denied. >> > > >> Result: Failed to create file /var/spoo/exim4/info: Permission denied. >> > > /spoo/ : typo in the e-mail message or typo during configuration? > > >typo in the e-mail message. There was a directory /var/spool/exim4/info before I removed /var/spool/exim4 and subdirectories. I''ll try purging exim4-base as others suggested. Tom>> There is no directory /var/spool/exim4/info. Should I create one? >> > > Andreas >
Thomas H. George wrote:> Andreas J Guelzow wrote: > >> On Tue, 2008-10-21 at 10:05 -0400, Thomas H. George wrote: >> >> >> >>> Result: Failed to create file /var/spoo/exim4/info: Permission denied. >>> >>> >> >> >>> Result: Failed to create file /var/spoo/exim4/info: Permission denied. >>> >>> >> /spoo/ : typo in the e-mail message or typo during configuration? >> >> >> >> > typo in the e-mail message. There was a directory /var/spool/exim4/info > before I removed /var/spool/exim4 and subdirectories. > > I''ll try purging exim4-base as others suggested. > >>> >>> > OK, purging exim4-base solved the problem. I can now send mail as tom and from mutt. >Tom> _______________________________________________ > Pkg-exim4-users mailing list > Pkg-exim4-users at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users > > >