I installed sendmail on a debian-linux-server running "vserver" several
times, 
on each vserver one sendmail. The idea is that the vserver mail2 gets
mail from outside and delivers it to another vserver where the local
users are.

Because vservers are installed, I have to avoid 127.0.0.1, all mails must
pass
through my official internal mailaddresses 10.95.81.xxx

My sendmail.mc looks like this:

==========================================0
LOCAL_CONFIG

dnl # vserver: do not listen to 127.0.0.1, but only to a right IP
DAEMON_OPTIONS(`Port=smtp,Addr=10.95.81.71, Name=MTA')dnl

dnl # vserver: do not listen to Port 587 (Look for "sendmail 587")
dnl #          on google if you are interested
FEATURE(`no_default_msa')dnl

FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`access_db')dnl

INPUT_MAIL_FILTER(`mimedefang',
`S=unix:/var/spool/MIMEDefang/mimedefang-multiplexor.sock, F=T,
T=S:1m;R:1m')

dnl # our smarthost
FEATURE(`nullclient', smtp.zdf)dnl


LOCAL_CONFIG
==========================================

When I run these commands...

mail2:/etc/mail# cat /etc/group | mail -s "test" [EMAIL PROTECTED]
mail2:/etc/mail# sendmail -v [EMAIL PROTECTED] </dev/null
[EMAIL PROTECTED] Connecting to [127.0.0.1] port 587 via relay...
[EMAIL PROTECTED] Deferred: Connection refused by [127.0.0.1]

... always the same things happen in /var/log/mail.log:

Mar 18 15:40:01 mail2 sm-msp-queue[15646]: i2IFULeQ015620: 
  [EMAIL PROTECTED], ctladdr=root (0/0), 
  delay=00:09:40, xdelay=00:00:00, 
  mailer=relay, pri=120040, 
  relay=[127.0.0.1] [127.0.0.1], 
  dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

There should be a way to get local mails delivered to smarthost. This
127.0.0.1 seems to be hardcoded somewhere. What can I do?

Help appreciated, thanks!

Greetings,
Richard

--
Stadt Zirndorf, EDV
Richard Lippmann
Tel. 0911/9600-190 
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to