[Exim] Re: Exim rejecting email routed from ISP

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Derrick 'dman' Hudson
Datum:  
To: exim-users
Betreff: [Exim] Re: Exim rejecting email routed from ISP
--
On Sat, Jul 20, 2002 at 11:06:58AM -0700, Cam Ellison wrote:
| * Derrick 'dman' Hudson (dsh8290@???) wrote:


| >Why is exim trying to deliver to "root@localhost"? What user do you
| >run fetchmail as? Do you have a "is <foo> here" option where "<foo>"
| >is your username on your system? I suspect that fetchmail is creating
| >that recipient, but it isn't what you really want.

|
| My fetchmailrc identifies me as "camellison", and the dccnet server as
| "mail.dccnet.com". That has not changed.


Hmm.  Say, what does
    $ grep 127.0.0.1 /etc/hosts
show?


I bet it is
    127.0.0.1   localhost
and thus gethostbyaddr() tells fetchmail that your machine is
"localhost".  (this affects exim and sendmail and any other program
that uses gethostbyaddr() as well)  To fix that, make the first item
in the name list be your FQDN.  I determined (via experimentation)
that that is what gethostbyaddr() returns.


| I have been running fetchmail as root (unwise, I know, but I was
| unsure at the time about how else to set it up, and then forgot to
| figure that out and change it). I guess I'd better read up on
| fetchmail again and straighten that out.


If you're running it from cron it is easy to run it as yourself. One
way is to use 'crontab -e' (as yourself) to edit your crontab. Then
cron will run it as you. Another way, if cron runs it as root is to
put "su camellison -c" in front of the command. Alternatively if it
is run from the system crontab you can just specify the user to run as
in front of the command.

-D

--
If your life is a hard drive,
Christ can be your backup.

http://dman.ddts.net/~dman/
--
[ Content of type application/pgp-signature deleted ]
--