Postfix 554 5.7.1 Relay Access Denied
!D678453B4C672EB0!716.entry
Postfix 554 5.7.1 Relay Access Denied
Postfix 安裝後想在 Windows 或者 Linux 用郵件程式(Outlook或者Evolution等)法送郵件總是會顯示
554 5.7.1 blahblah@mail.com: Relay access denied
但是安裝在伺服器上的 Squirrelmail 則收發正常。
查了一些資料,看到之所以出現這個資訊是因為收件方伺服器為了阻止垃圾郵件將從可疑IP地址或者沒有註冊的IP地址傳送過來的郵件統統拒之門外。
看起來除了跟對方管理員商量以外沒有方法,但是全世界的郵件伺服器那麼多都要互相註冊,那郵件還讓不讓發了。
後來知道 postfix 的配置檔案 /etc/main.cf 中有個 mynetworks 欄位,預設情況下它只寫著本地subnet,即 127.0.0.0/8,所以本地的 Squirrelmail 收發正常。 為了支援外部郵件程式,應該在這裡新增外網的subnet,即本地伺服器真實IP地址的 subnet,比如IP是 123.123.123.123 則應填寫 123.123.123.0/24 。書寫格式如下 "mynetworks = 123.123.123.0/24, 127.0.0.0/8",然後重新啟動 postfix 即可。 如 /etc/init.d/postfix restart
--------------------------------------------------------------------------------
我這上面寫的完全錯了,上面這些措施實行以後只會對 123.123.123.* 段內傳送才有效,到了外地照樣不行。
為此深思熟慮許久,領悟到OE上的SMTP驗證需要伺服器的支援,我的伺服器根本沒設定什麼SMTP認證,所以即使OE設定很到位也無濟於事。
所謂SMTP AUTH很簡單,給伺服器安上 SASL Library, 再讓他與Postfix合作即可,網上這方面內容很多,如果使用的是 debian,去檢視 ubuntu 文件是個好主意,上面問題的解答這裡寫得比較好:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/94384/viewspace-600327/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- nginx中報Access denied.Nginx
- ubuntu mysql Access denied for user root@localhostUbuntuMySqllocalhost
- Permission denied:user=xxx,access=WRITE,inode=xxx
- OGG Director連線報錯Access denied
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- Access denied for user ‘root‘@‘localhost‘問題的解決localhost
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- Ubuntu18.04:mysql:ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘UbuntuMySqlErrorlocalhost
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- [20201120]pam_systemd(crondsession) Failed to create session Access denied.txtSessionAI
- java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)JavaSQLExceptionlocalhost
- Windows git remote: HTTP Basic: Access denied 錯誤解決辦法WindowsGitREMHTTP
- pat-554. 磚牆
- Linux錯誤 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxErrorlocalhost
- Caused by: java.sql.SQLException: Access denied for user 'dell-pc'@'xxxxx' (using password: YES)JavaSQLException
- hive建立分割槽表報錯AccessControlException Permission denied: user=NONE, access=WRITE, inodeHiveExceptionNone
- 解決Mysql:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: NO)的方法MySqlErrorlocalhost
- NFS掛載時出現”access denied by server while mounting”的解決方法NFSServerWhile
- SpringBoot中yml配置java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: NOSpring BootJavaSQLExceptionlocalhost
- MySQL 8.0.13 密碼問題 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)MySql密碼Errorlocalhost
- Edge崩潰(Edge錯誤程式碼STATUS_ACCESS_DENIED的修復方法)
- Navicat遠端連線MySQL 提示1045 - Access denied for user 'root'@'223.74.158.192'(using password:YES)MySql
- MySQL使用普通使用者訪問返回ERROR 1698 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- MySQL系列:Docker安裝 MySQL提示錯誤:Access denied for user'root'@'localhost' (using password:yes)MySqlDockerlocalhost
- 【本人親測 已解決】044 - Access denied for user ‘root‘@‘%‘ to database ‘資料庫名稱‘Database資料庫
- GraphQL & Relay 初探
- mac os x 安裝mysql遇到 Access denied for user ‘root‘@‘localhost‘ (using password: YES)的解決方法MacMySqllocalhost
- GraphQL & Relay 實戰
- postfix 發信錯誤
- RHLE5+Postfix+OpenwebmailWebAI
- gitlab密碼更新後,使用git命令報錯remote: HTTP Basic: Access denied fatal: Authentication failed for ‘https:xxx‘Gitlab密碼REMHTTPAI
- CDH 5.7.1單使用者模式部署手冊模式
- 【配置】伺服器遠端建立索引報錯access denied ("java.io.FilePermission""........\IKAnalyzer.cfg.xml""read"伺服器索引JavaXML
- Linux 中 /var/spool/postfix/maildropLinuxAI
- SQLSTATE[HY000] [1045] Access denied for user ‘root‘@‘localhost‘ (using password: YES)”錯誤的隱藏解決辦法SQLlocalhost