2013-07-09 52 views
0

希望有人能幫助我解決這個問題。Postfix Dovecot SquirrelMail

當前設置

首頁Verzion路由器 - 動態IP地址,端口25阻止

的Windows Server 2008 - > Hyper-V的 - > Centos6

後綴

達夫科特

SquirrelMail

* *刪除Sendmail

因此,我可以收到來自[email protected]的電子郵件,我現在可以發送到[email protected]我唯一的問題是,當我發送到[email protected]它來雖然[email protected]

我想它作爲[email protected]

它看起來像我的發件域已經改變才能通過。我做錯了嗎

我可以發佈我的日誌,但他們不給任何錯誤,所以我不知道這會有多大的幫助。

什麼我可以張貼讓我知道

[[email protected] log]# grep -v \# /etc/postfix/main.cf |grep -v ^$ 
queue_directory = /var/spool/postfix 
command_directory = /usr/sbin 
daemon_directory = /usr/libexec/postfix 
data_directory = /var/lib/postfix 
mail_owner = postfix 
myhostname = mail.mydomain.com 
mydomain = mydomain.com 
myorigin = $myhostname 
myorigin = $mydomain 
inet_interfaces = all 
inet_protocols = ipv4 
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain 
unknown_local_recipient_reject_code = 550 
mynetworks = 192.168.1.0/24, 127.0.0.0/8, 8.8.8.8 
smtp_sasl_auth_enable = yes 
smtp_sasl_security_options = noanonymous 
smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd 
smtp_always_send_ehlo = yes 
relayhost = [smtp.gmail.com]:587 
smtp_sasl_tls_security_options = noanonymous 
smtp_use_tls = yes 
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt 
smtp_sasl_tls_security_options = noanonymous 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
home_mailbox = Maildir/ 


debug_peer_level = 2 
debugger_command = 
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin 
ddd $daemon_directory/$process_name $process_id & sleep 5 
sendmail_path = /usr/sbin/sendmail.postfix 
newaliases_path = /usr/bin/newaliases.postfix 
mailq_path = /usr/bin/mailq.postfix 
setgid_group = postdrop 
html_directory = no 
manpage_directory = /usr/share/man 
sample_directory = /usr/share/doc/postfix-2.6.6/samples 
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES 
queue_directory = /var/spool/postfix 

回答

1

您使用的中繼主機。
它應該作爲[email protected]外出,因爲gmail交換髮件人以反映您的gmail帳戶

只有當您有STATIC ip時,您才能以[email protected]發送電子郵件。大多數電子郵件提供商都將動態IP地址列入黑名單

如果你有一個靜態IP,只是刪除中繼主機,* smtp_sasl_password_maps *一般SASL,除非你知道自己在做什麼。


要請檢查是否你列入黑名單或不click here

+0

動態IP地址。我想會有辦法做到這一點。爲什麼任何想要看起來專業的人都會選擇讓某人發送一封電子郵件到一個地址,然後以一種完全不同的方式回覆我的想法。 –

+0

這是垃圾郵件的預防。動態IP類似全球IPv4地址的70%(大約)。如果他們可以將電子郵件發送給任何人,那麼他們可以通過DDOS將任何SMTP服務器關閉。但是,你的服務器將接受一切,但不會被允許直接發送任何東西,除非它來自可信/靜態IP。 –

+0

@ user2566483如果我的答案對您有幫助,請點擊綠色的大按鈕:P。 –