This is my newest wisdom for that:

dnl # vserver: do not listen to 127.0.0.1, but only to a right IP
dnl # turn off default entry for MSA
FEATURE(`no_default_msa')dnl 
dnl # all my daemons (Port 25, Port 587 for mailsubmission)
dnl # shall listen only to this ip-address:
DAEMON_OPTIONS(`Name=MTA,Port=25,Addr=10.95.81.71')dnl
DAEMON_OPTIONS(`Name=MSA,Port=587,Addr=10.95.81.71')dnl

Greetings,
Richard

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

-----Urspr�ngliche Nachricht-----
Von: Gregory (Grisha) Trubetskoy [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. M�rz 2004 16:25
An: '[EMAIL PROTECTED]'
Betreff: Re: AW: [Vserver] AW: several sendmail running, how to deliver mail
l ocal?



But isn't 127.0.0.1 mapped to the vserver IP anyway:


# vserver grisha enter
ipv4root is now 192.168.1.187
New security context is 10187
[EMAIL PROTECTED]:grisha /]telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 grisha.ispol.com ESMTP Sendmail 8.12.10/8.12.10; Fri, 19 Mar 2004
09:53:47 -0500

Grisha

On Fri, 19 Mar 2004, Stadt Zirndorf, EDV wrote:

> No, this configuration hint is valid for all vservers _and_ the main 
> server.
>
> Greetings,
> Richard
>
> --
> Stadt Zirndorf, EDV
> Richard Lippmann
> Tel. 0911/9600-190
>
> -----Urspr?ngliche Nachricht-----
> Von: Gregory (Grisha) Trubetskoy [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 18. M?rz 2004 20:56
> An: '[EMAIL PROTECTED]'
> Betreff: Re: [Vserver] AW: several sendmail running, how to deliver 
> mail local?
>
>
>
> Just to clarify - this is only a problem for the sendmail running on 
> the main (ctx 0) server, correct?
>
> Grisha
>
>
> On Thu, 18 Mar 2004, Stadt Zirndorf, EDV wrote:
>
> > I found the solution, there is a submit.cf for sendmail being used 
> > when sendmails gets invoked like this:
> >
> > sendmail -v [EMAIL PROTECTED] </dev/null
> >
> > These mails get submitted to 127.0.0.1:587! /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 127.0.0.1 on vserver, use official ip-address
> > instead:
> > dnl FEATURE(`msp', `[127.0.0.1]', `MSA')dnl
> > FEATURE(`msp', `[10.95.81.71]', `MSA')dnl
> >
> > Run "make" after that to get your submit.cf generated and all mails 
> > get directed to 10.95.81.71. Another two days of work... AND: we are 
> > getting more and more clever again.
> >
> > Greetings,
> > Richard
> >
> >
> > -----Urspr?ngliche Nachricht-----
> > Von: Stadt Zirndorf, EDV
> > Gesendet: Donnerstag, 18. M?rz 2004 16:09
> > An: '[EMAIL PROTECTED]'
> > Betreff: several sendmail running, how to deliver mail local?
> >
> >
> > 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
> >
> _______________________________________________
> Vserver mailing list
> [EMAIL PROTECTED] 
> http://list.linux-vserver.org/mailman/listinfo/vserver
> _______________________________________________
> Vserver mailing list
> [EMAIL PROTECTED] 
> http://list.linux-vserver.org/mailman/listinfo/vserver
>
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to