Am 23.06.2010 12:28, schrieb Andreas Reschke:
Am Mi, 23.06.2010, 11:13, schrieb Robert Schetterer:
Am 23.06.2010 10:48, schrieb Andreas Reschke:
Am Mi, 23.06.2010, 10:26, schrieb Robert Schetterer:
Am 23.06.2010 10:13, schrieb Andreas Reschke:
Am Mi, 23.06.2010, 10:07, schrieb Robert Schetterer:
Am 23.06.2010 09:47, schrieb Andreas Reschke: > Hallo, > ich habe hier viele SAP-Systeme unter SLES 10, die mit ihrem eigenen > SAP-SMTP aus der SAP-Applikation Mails verschicken und empfangen. > Dafür > nutzen sie den Port 25. Nun soll das darunter liegende Linux selber > auch > Statusmail usw. verschicken. Wenn ich dafür den Postfix starte, > belegen > beide den Port 25. Dies macht Probleme. > Frage: wie kann ich den Postfix so konfigurieren, das er nur Mails > schickt, aber nicht auf den Port 25 hört. Mailemfang brauche ich > unter > Linux nicht. > > Gruß > Andreas
schnelle Loesung ohne grosses Nachdenken wenn mehrere ips zu Verfuegung stehen, postfix an die eine sap and die andere binden, ansonsten wuerde ich immer als mailserver postfix bevorzugen und sap umkonfigurieren
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria _______________________________________________ postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
Hallo Robert, ich darf SAP nicht umkonfigurieren. Der Server hat auch nur eine IP, geht also auch nicht.
Gruß Andreas
bist du denn sicher das sap nicht jetzt schon ueber postfix sendet schon mal in deine /var/log/mail reingesehen und was passiert denn wenn du eine system mail ausloest etc postfix sollte eigentlich gar nicht starten wenn der port 25 schon belegt ist und umgekehrt der smtp stack von sap auch nicht
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria _______________________________________________ postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
Also: wenn Postfix läuft, meckert SAP und die Mailfunktion von SAP funktioniert nicht. Die SAP-Applikation macht alles selbst und verschickt nichts über Postfix. Richtig, man kann zwar mittels "/etc/init.d/postfix start" Postfix starten, im Logfile steht aber Postfix läuft nicht. Wie gesagt: SAP darf ich nicht anfassen.
Ich will ja nur Mails verschicken und nicht empfangen. Ich probiere es mal mit "relayhost = [mail.isp.example]:submission". Vielleicht klappt dies.
noe nicht so
sondern zb so, denke ich ( patrick verbessert mich hoffentlich falls ich es auf die schnelle jetzt versaue )
master.cf
raus
smtp inet n - n - 250 smtpd
rein submission inet n - n - - smtpd -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,permit_mynetworks,reject
main.cf mynetworks = 127.0.0.0/8
Gruß Andreas
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria _______________________________________________ postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
Klappt so leider auch nicht: /var/log/mail: Jun 23 12:20:19 bgstsapebls03 postfix/master[30025]: terminating on signal 15 Jun 23 12:20:24 bgstsapebls03 postfix/postfix-script[30179]: starting the Postfix mail system Jun 23 12:20:24 bgstsapebls03 postfix/master[30183]: daemon started -- version 2.5.6, configuration /etc/postfix Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 0A4F3D6167: from=wd_ALERT_bgstsapebls03@behrgroup.net, size=1480, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 0954DD6164: from=root@behrgroup.net, size=1422, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 0992DD615A: from=root@behrgroup.net, size=1546, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 0AC9BD6160: from=wd_ALERT_bgstsapebls03@behrgroup.net, size=1480, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 06EDDD6168: from=wd_ALERT_bgstsapebls03@behrgroup.net, size=8758, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 09D7AD615C: from=stefan.sommer@behrgroup.com, size=1410, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 0A072D615D: from=wd_ALERT_bgstsapebls03@behrgroup.net, size=8758, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/qmgr[30201]: 0A920D615E: from=wd_alive_bgstsapebls03@behrgroup.net, size=1224, nrcpt=1 (queue active) Jun 23 12:20:25 bgstsapebls03 postfix/smtp[30222]: fatal: unknown service: smtp/tcp Jun 23 12:20:25 bgstsapebls03 postfix/smtp[30226]: fatal: unknown service: smtp/tcp Jun 23 12:20:25 bgstsapebls03 postfix/smtp[30230]: fatal: unknown service: smtp/tcp Jun 23 12:20:25 bgstsapebls03 postfix/smtp[30234]: fatal: unknown service: smtp/tcp Jun 23 12:20:25 bgstsapebls03 postfix/smtp[30238]: fatal: unknown service: smtp/tcp Jun 23 12:20:26 bgstsapebls03 postfix/qmgr[30201]: warning: private/smtp socket: malformed response Jun 23 12:20:26 bgstsapebls03 postfix/master[30183]: warning: process /usr/lib/postfix/smtp pid 30222 exit status 1 Jun 23 12:20:26 bgstsapebls03 postfix/qmgr[30201]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description Jun 23 12:20:26 bgstsapebls03 postfix/master[30183]: warning: /usr/lib/postfix/smtp: bad command startup -- throttling Jun 23 12:20:26 bgstsapebls03 postfix/qmgr[30201]: warning: connect to transport retry: No such file or directory Jun 23 12:20:26 bgstsapebls03 postfix/qmgr[30201]: warning: connect to transport retry: No such file or directory Jun 23 12:20:26 bgstsapebls03 postfix/master[30183]: warning: process /usr/lib/postfix/smtp pid 30226 exit status 1 Jun 23 12:20:26 bgstsapebls03 postfix/qmgr[30201]: 09D7AD615C: to=xxx.YYY@behrgroup.com, relay=none, delay=74423, delays=74422/1/0/0, dsn=4.3.0, status=deferred (mail transport unavailable) Jun 23 12:20:26 bgstsapebls03 postfix/master[30183]: warning: process /usr/lib/postfix/smtp pid 30230 exit status 1
postconf -n: bgstsapebls03:/etc/postfix # postconf -n alias_maps = hash:/etc/aliases biff = no command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = /usr/share/doc/packages/postfix/html inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain myhostname = bgstsapebls03.behrgroup.net mynetworks = 127.0.0.0/8 newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix/README_FILES relayhost = bgstmh1.behrgroup.net sample_directory = /usr/share/doc/packages/postfix/samples sendmail_path = /usr/sbin/sendmail setgid_group = maildrop unknown_local_recipient_reject_code = 550
master.cf bgstsapebls03:/etc/postfix # cat master.cf # # Postfix master process configuration file. For details on the format # of the file, see the Postfix master(5) manual page. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== #smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_client_restrictions=permit_sasl_authenticated,permit_mynetworks,reject submission inet n - n - - smtpd -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,permit_mynetworks,reject #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil #localhost:10025 inet n - n - - smtpd -o content_filter= scache unix - - n - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}
Liegt es vielleicht daran, das in der /etc/services der Port 25 deaktiviert ist?
warum bitte das ?
so muss das sein
smtp 25/tcp mail # Simple Mail Transfer smtp 25/udp mail # Simple Mail Transfer
submission 587/tcp # Submission submission 587/udp # Submission
sieht aus als wollte alte mail noch uber den alten eintrag raus wenns irgendwie geht leere mal die warteschleife, wenn du die mail da nicht mehr brauchst
zb so postsuper -d ALL
dann restart postfix /etc/init.d/postfix restart
dann eine testmail cat /etc/hosts | mail -s "test" root
und dann nochmal ins log guggen was drinnsteht
root sollte etwas draussen sein
/etc/aliases
root: hostmaster@deine.domain
falls du was aenderst postalias /etc/aliases und ein postfix restart hinterher
Gruß Andreas