About this list Date view Thread view Subject view Author view Attachment view

From: Stadt Zirndorf, EDV (edv_at_zirndorf.de)
Date: Thu 18 Mar 2004 - 16:59:50 GMT

I found the solution, there is a submit.cf for sendmail being used when
sendmails gets invoked like this:

sendmail -v me_at_somewhere </dev/null

These mails get submitted to! /var/log/mail.log shows this.
But with vserver running all mails have to be submitted to our our official
ip-address. So edit your /etc/mail/submit.mc

dnl Don't send mail to on vserver, use official ip-address
dnl FEATURE(`msp', `[]', `MSA')dnl
FEATURE(`msp', `[]', `MSA')dnl

Run "make" after that to get your submit.cf generated and all mails get
directed to Another two days of work... AND: we are getting
more and more clever again.


-----Ursprüngliche Nachricht-----
Von: Stadt Zirndorf, EDV
Gesendet: Donnerstag, 18. März 2004 16:09
An: 'vserver_at_list.linux-vserver.org'
Betreff: several sendmail running, how to deliver mail local?

I installed sendmail on a debian-linux-server running "vserver" several
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, all mails must
pass through my official internal mailaddresses 10.95.81.xxx

My sendmail.mc looks like this:


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

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


`S=unix:/var/spool/MIMEDefang/mimedefang-multiplexor.sock, F=T,

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


When I run these commands...

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

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

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

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

Help appreciated, thanks!


Stadt Zirndorf, EDV
Richard Lippmann
Tel. 0911/9600-190 
Vserver mailing list

About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 18 Mar 2004 - 17:01:22 GMT by hypermail 2.1.3