2012-01-19 1 views
-1

私は新しいUbuntuメールサーバを設定しています。私はpostfix、amavis、dovecot、spamassassin、clamavをインストールしました。 私はfetchmailをインストールし、私のGMailメールボックスをポーリングし、その中のメッセージを私のUbuntuメールボックスに送りたいと思っています。 Gmailメールボックスのドメイン名は、Ubuntuドメインとは異なります。postfix/dovecot/amavis/spamassassinのSPFチェックを避けるようにfetchmailを設定するUbuntuの設定

私は本当にこれで苦労しています。自分のホームディレクトリに.fetchmailrcファイルを作成し、その中にGmailのアカウントを設定します。メールを収集してもOKですが、配信することはできません。ここに例のメッセージからのログがあります。私は無実を守るためにドメイン名を変更しました! /etc/postfix/main.cfの

Jan 19 09:50:21 hp fetchmail[23908]: reading message [email protected]@wi-in-f109.1e100.net:195 of 195 (1835 header octets) (log message incomplete) 
Jan 19 09:50:21 hp fetchmail[23908]: SMTP error: 511 sorry, no mailbox here by that name (#5.1.1 - chkuser) 
Jan 19 09:50:21 hp postfix/smtpd[25401]: connect from localhost[127.0.0.1] 
Jan 19 09:50:21 hp postfix/smtpd[25401]: 319EF44036D: client=localhost[127.0.0.1] 
Jan 19 09:50:21 hp fetchmail[23908]: mail from [email protected] bounced to fetchmail 
Jan 19 09:50:21 hp postfix/cleanup[25406]: 319EF44036D: message-id=<[email protected]> 
Jan 19 09:50:21 hp postfix/qmgr[23701]: 319EF44036D: from=<>, size=3305, nrcpt=1 (queue active) 
Jan 19 09:50:21 hp postfix/smtpd[25401]: disconnect from localhost[127.0.0.1] 
Jan 19 09:50:22 hp fetchmail[23908]: can't even send to fetchmail! 
Jan 19 09:50:22 hp fetchmail[23908]: not flushed 
Jan 19 09:50:26 hp postfix/smtpd[25411]: connect from localhost[127.0.0.1] 
Jan 19 09:50:26 hp postfix/smtpd[25411]: 6349A44358E: client=localhost[127.0.0.1] 
Jan 19 09:50:26 hp postfix/cleanup[25406]: 6349A44358E: message-id=<[email protected]> 
Jan 19 09:50:26 hp postfix/qmgr[23701]: 6349A44358E: from=<>, size=3787, nrcpt=1 (queue active) 
Jan 19 09:50:26 hp postfix/smtpd[25411]: disconnect from localhost[127.0.0.1] 
Jan 19 09:50:26 hp postfix/cleanup[25406]: 723FF4435B4: message-id=<[email protected]> 
Jan 19 09:50:26 hp amavis[24934]: (24934-15) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: W1ErWKwyvtZ8, Hits: -1, size: 3305, queued_as: 6349A44358E, 5166 ms 
Jan 19 09:50:26 hp postfix/smtp[25407]: 319EF44036D: to=<[email protected]>, orig_to=<fetchmail>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.3, delays=0.11/0.01/0/5.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6349A44358E) 
Jan 19 09:50:26 hp postfix/qmgr[23701]: 319EF44036D: removed 
Jan 19 09:50:26 hp postfix/local[25412]: 6349A44358E: to=<[email protected]>, relay=local, delay=0.11, delays=0.05/0.01/0/0.05, dsn=2.0.0, status=sent (forwarded as 723FF4435B4) 
Jan 19 09:50:26 hp postfix/qmgr[23701]: 723FF4435B4: from=<>, size=3933, nrcpt=1 (queue active) 
Jan 19 09:50:26 hp postfix/qmgr[23701]: 6349A44358E: removed 
Jan 19 09:50:26 hp postfix/local[25412]: 723FF4435B4: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.09, delays=0.05/0/0/0.04, dsn=2.0.0, status=sent (delivered to maildir) 
Jan 19 09:50:26 hp postfix/qmgr[23701]: 723FF4435B4: removed 

パート:

myhostname = hp.ubuntudomain.net 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
myorigin = /etc/mailname 
mydestination = ubuntudomain.net, hp.ubuntudomain.net, localhost.ubuntudomain.net, localhost 
relayhost = [smtp.talktalk.net]:25 
mynetworks = 127.0.0.0/8 192.168.6.0/24 172.16.0.0/16 10.251.1.0/24 
mailbox_command = 
mailbox_size_limit = 0 
recipient_delimiter = + 
inet_interfaces = all 

proxy_interfaces = 10.251.1.4 (ubuntu ip address) 172.16.2.103 (an IP address I want to be able to relay from) (plus external IP address outside NAT router) 
home_mailbox = Maildir/ 
mail_spool_directory = /var/mail/ 

content_filter = smtp-amavis:[127.0.0.1]:10024 

何かアドバイスを歓迎。問題を発見

答えて

0

は - は.fetchmailrcに私が持っていた:私は

smtphost "localhost" 

にそれを変更した場合

smtphost "ubuntudomain.net" 

はそれをすべての仕事を始めました。

関連する問題