PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mails mit php senden



trmax
23.07.02, 22:40
hab vor einigen wochen einen linux 7.3 rechner eingerichtet der permanent im inet und derzeit nur über eine fixe ip erreichbar ist...jetzt wollt ich via php ein mail verschicken, aber die mail kam nicht an. was muss ich am server (sendmail) konfigurieren, damit der versand klappt?

Harry
23.07.02, 22:51
Hallo,

der Mailversand sollte eigentlich funktionieren, wenn Dein Resolver vernünftig konfiguriert ist und Dein Hostname auch für fremde Rechner per DNS aufgelöst werden kann.
Alternativ kannst Du einen Relayhost definieren, also sowas wie ein Default-Gateway für SMTP. Über den kann Dein sendmail dann jede Mail ausliefern, solange die Mails nicht lokal zuzustellen sind.

Für eine genauere Analyse sollte die /var/log/mail sorgen.

Welche Distri hast Du?

Harry

trmax
23.07.02, 23:06
hab 7.3 aufm server laufen...
in der queue sind schon eine menge mails drinnen, die aber nicht versendet werden. hab momentan nur ne ip 193.170.211.240, sollte aber so doch auch laufen? eigentlich will ich ja nur das eh shcon lauffähige php-formular an ne vordeffinierte email schicken, geht aber nichts:(((

Harry
24.07.02, 08:09
Was steht denn in der /var/log/mail an Fehlermeldungen?

Harry

trmax
25.07.02, 16:11
Jul 15 13:27:01 linux sendmail[7482]: alias database /etc/aliases rebuilt by root
Jul 15 13:27:01 linux sendmail[7482]: /etc/aliases: 38 aliases, longest 10 bytes, 434 bytes total
Jul 15 13:27:21 linux sendmail[7953]: g6FBRLo07953: from=root, size=879, class=0, nrcpts=1, msgid=<200207151127.g6FBRLo07953@linux.local>, \
relay=root@localhost
Jul 15 13:27:22 linux sendmail[7957]: g6FBRLo07953: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=local, pri=120879,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:23 linux sendmail[7962]: g6FBRNt07962: from=root, size=1959, class=0, nrcpts=1, msgid=<200207151127.g6FBRNt07962@linux.local>,\
relay=root@localhost
Jul 15 13:27:23 linux sendmail[7966]: g6FBRNt07962: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=121959,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:25 linux sendmail[7971]: g6FBRPb07971: from=root, size=556, class=0, nrcpts=1, msgid=<200207151127.g6FBRPb07971@linux.local>, \
relay=root@localhost
Jul 15 13:27:25 linux sendmail[7975]: g6FBRPb07971: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120556,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:27 linux sendmail[7980]: g6FBRRB07980: from=root, size=461, class=0, nrcpts=1, msgid=<200207151127.g6FBRRB07980@linux.local>, \
relay=root@localhost
Jul 15 13:27:27 linux sendmail[7984]: g6FBRRB07980: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120461,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:29 linux sendmail[7989]: g6FBRTh07989: from=root, size=407, class=0, nrcpts=1, msgid=<200207151127.g6FBRTh07989@linux.local>, \
relay=root@localhost
Jul 15 13:27:29 linux sendmail[7993]: g6FBRTh07989: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120407,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:31 linux sendmail[7998]: g6FBRVu07998: from=root, size=640, class=0, nrcpts=1, msgid=<200207151127.g6FBRVu07998@linux.local>, \
relay=root@localhost
Jul 15 13:27:31 linux sendmail[8002]: g6FBRVu07998: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120640,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:33 linux sendmail[8007]: g6FBRXL08007: from=root, size=824, class=0, nrcpts=1, msgid=<200207151127.g6FBRXL08007@linux.local>, \
relay=root@localhost
Jul 15 13:27:33 linux sendmail[8011]: g6FBRXL08007: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120824,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:35 linux sendmail[8016]: g6FBRZO08016: from=root, size=890, class=0, nrcpts=1, msgid=<200207151127.g6FBRZO08016@linux.local>, \
relay=root@localhost
Jul 15 13:27:35 linux sendmail[8020]: g6FBRZO08016: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120890,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:37 linux sendmail[8025]: g6FBRbX08025: from=root, size=499, class=0, nrcpts=1, msgid=<200207151127.g6FBRbX08025@linux.local>, \
relay=root@localhost
Jul 15 13:27:37 linux sendmail[8029]: g6FBRbX08025: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120499,\
dsn=2.0.0, stat=Sent
Jul 15 13:27:39 linux sendmail[8034]: g6FBRdu08034: from=root, size=398, class=0, nrcpts=1, msgid=<200207151127.g6FBRdu08034@linux.local>, \
relay=root@localhost
Jul 15 13:27:39 linux sendmail[8038]: g6FBRdu08034: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=120398,\
dsn=2.0.0, stat=Sent
Jul 15 12:31:43 trc sendmail[11037]: g6FAVhE11037: from=root, size=127, class=0, nrcpts=1, msgid=<200207151031.g6FAVhE11037@trc.trc>, relay\
=root@localhost