私はメールシステムに苦労していましたが、それを実現させましたが、部分的にしかcronジョブがメールを送信せず、次のコマンドが機能します: echo "件名:try1" | sendmail -v [email protected] しかし、同じ設定を使用しても、mediawikiは電子メールを送信しません。MediaWikiはメールを送信しませんが、cronとsendmailは完全に動作しています
私はリンクの多くをチェックしましたし、私はあなたがsuccesfullのメールのログを持っているソリューションここ
を見つけるcoudn't:
Feb 8 12:53:45 localhost postfix/pickup[29000]: CC28C9C1415: uid=1005 from=<User>
Feb 8 12:53:45 localhost postfix/cleanup[1379]: CC28C9C1415: message-id=<[email protected]>
Feb 8 12:53:45 localhost postfix/qmgr[29001]: CC28C9C1415: from=<[email protected]>, size=265, nrcpt=1 (queue active)
Feb 8 12:54:07 localhost postfix/smtp[1380]: CC28C9C1415: to=<[email protected]>, relay=mailer[SomeIP]:25, delay=21, delays=0.01/0/21/0.22, dsn=2.0.0, status=sent (250 ok: Message 167524196 accepted)
Feb 8 12:54:07 localhost postfix/cleanup[1379]: 41E819C1416: message-id=<[email protected]>
Feb 8 12:54:07 localhost postfix/bounce[1387]: CC28C9C1415: sender delivery status notification: 41E819C1416
Feb 8 12:54:07 localhost postfix/qmgr[29001]: 41E819C1416: from=<>, size=1880, nrcpt=1 (queue active)
Feb 8 12:54:07 localhost postfix/qmgr[29001]: CC28C9C1415: removed
Feb 8 12:54:07 localhost postfix/error[788]: 41E819C1416: to=<[email protected]>, relay=none, delay=0.01, delays=0/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to Domain.intern[SomeIP]:25: Connection refused)
、ここであなたがして、関連するログを持っていますそれが動作していないもの。
Feb 8 12:59:06 localhost postfix/smtpd[3744]: connect from localhost[127.0.0.1]
Feb 8 12:59:06 localhost postfix/smtpd[3744]: 92DD19C13FD: client=localhost[127.0.0.1]
Feb 8 12:59:06 localhost postfix/cleanup[3746]: 92DD19C13FD: message-id=<[email protected]>
Feb 8 12:59:06 localhost postfix/qmgr[29001]: 92DD19C13FD: from=<[email protected]>, size=1079, nrcpt=1 (queue active)
Feb 8 12:59:06 localhost postfix/smtpd[3744]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Feb 8 12:59:17 localhost postfix/smtp[3689]: connect to Domain.intern[SomeIP]:25: Connection timed out
Feb 8 12:59:22 localhost postfix/smtp[3690]: connect to Domain.intern[SomeIP]:25: Connection timed out
Feb 8 12:59:22 localhost postfix/smtp[3749]: 92DD19C13FD: to=<[email protected]>, relay=mailer[SomeIP]:25, delay=16, delays=0.06/0.01/14/1.8, dsn=2.0.0, status=sent (250 ok: Message 167524402 accepted)
Feb 8 12:59:22 localhost postfix/qmgr[29001]: 92DD19C13FD: removed
ここでは、メールシステム(LocalSettings.phpで)に関連したmediawikiのの構成を持っている:
$wgSMTP = array(
"host" => '127.0.0.1',
"IDHost" => 'Computer',
"localhost" => 'Computer',
"port" => "25",
'auth' => false, // Should we use SMTP authentication (true or false)
);
を、これは接尾辞の設定です:
myhostname = Computer
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = Computer, localhost
relayhost =
mynetworks = 127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16
mailbox_size_limit = 0
recipient_delimiter = +
notify_classes = resource, software
inet_interfaces = all
inet_protocols = all
私はいずれかをapreciateますあなたが提供できるヘルプ
------------------------------アップデート------------------------------ -------- --------------ここ 私がTelnetと電子メールを送信しようとした
、それは動作しませんでした
telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 Computer ESMTP Postfix (Ubuntu)
MAIL FROM: [email protected]
250 2.1.0 Ok
RCPT TO:[email protected]
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
There is no data to send
.
250 2.0.0 Ok: queued as 047F59C1417
そして
ログconnect from localhost[127.0.0.1]
Feb 8 16:20:20 localhost postfix/smtp[29704]: 40AF99C140A: to=<[email protected]>, relay=none, delay=14535, delays=14396/0.01/139/0, dsn=4.4.1, status=deferred (connect to Domain[SomeIP]:25: Connection timed out)
Feb 8 16:20:50 localhost postfix/smtpd[31010]: CAD459C1417: client=localhost[127.0.0.1]
Feb 8 16:21:17 localhost postfix/cleanup[31047]: CAD459C1417: message-id=<[email protected]>
Feb 8 16:21:17 localhost postfix/qmgr[29001]: CAD459C1417: from=<[email protected]>, size=324, nrcpt=1 (queue active)
Feb 8 16:21:27 localhost postfix/smtp[29704]: CAD459C1417: to=<[email protected]>, relay=Domain[SOMEIP]:25, delay=51, delays=41/0/9.2/0.2, dsn=2.0.0, status=sent (250 ok: Message 167539525 accepted)
Feb 8 16:21:27 localhost postfix/qmgr[29001]: CAD459C1417: removed