Thanks for all the explanations. 

On Wed, 29 Sep 2010 18:02:05 +0200, Sven Joachim wrote:

> In case you want that back, (setq mail-user-agent 'sendmail-user-agent)
> does the trick.  Can you send mail if you do that?

No... OK, so the problem is acutally sendmail. My bad. 

It seems to me that sendmail is not accepting local smtp connections:

 Sep 29 14:00:06 coral sm-msp-queue[11799]: o8THO6vW011692: to=t...@email.com, 
ctladdr=me (myid/mygrp), delay=00:36:00, xdelay=00:00:00, mailer=relay, 
pri=210140, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection 
refused by [127.0.0.1]
 Sep 29 14:00:06 coral sm-msp-queue[11799]: o8TEe1OX009848: to=root, 
delay=03:20:05, xdelay=00:00:00, mailer=relay, pri=931826, relay=[127.0.0.1] 
[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
 Sep 29 14:00:06 coral sm-msp-queue[11799]: o8TAT6ga009319: to=root, 
ctladdr=root (0/0), delay=07:31:00, xdelay=00:00:00, mailer=relay, pri=2100639, 
relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by 
[127.0.0.1]

On googling for the cure, I found some posts that suggest to
tweak daemon options. Here is my current setting:

  r...@coral:/etc/mail# grep smtp *.mc
  sendmail.mc:dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, 
Addr=::1')dnl
  sendmail.mc:DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, 
Addr=127.0.0.1')dnl
  sendmail.mc:MAILER(`smtp')dnl

  $ grep DaemonPortOptions *.cf
  sendmail.cf:O DaemonPortOptions=Family=inet,  Name=MTA-v4, Port=smtp, 
Addr=127.0.0.1
  sendmail.cf:O DaemonPortOptions=Family=inet,  Name=MSP-v4, Port=submission, 
M=Ea, Addr=127.0.0.1
  submit.cf:O DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E

Anything wrong with it? 

How can I enable sendmail to accept local smtp connections for
apps like emacs? (sendmail from the command line works fine)

Thanks.

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/i7vvun$pj...@dough.gmane.org

Reply via email to