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
