PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 七嘴八舌異言堂
帳戶
密碼
 

  回應
 
主題工具
darkangel
Major Member
 
darkangel的大頭照
 

加入日期: Aug 2001
文章: 211
script 指令不是只有記錄你下過的 command?
要知道的是安裝後有什麼設定被更動過吧?這部份去看 iRedmail 說明文件或社群論壇比較準。
我説的大概是比對 /etc 與 /usr/local/etc 之類的目錄,比對設定檔,tail -F /var/log/syslog,用 service --status-all 與 netstat -nlp 查狀態之類。
畢竟我只是一只 code monkey,不是專業MIS,也沒用過 iRedmail,我只能說我碰到相同的狀況會怎樣處理而已。
     
      
__________________
滿招損 謙受益

此文章於 2015-05-02 06:03 PM 被 darkangel 編輯.
舊 2015-05-02, 06:01 PM #11
回應時引用此文章
darkangel離線中  
isnowcloud
Regular Member
 

加入日期: Feb 2015
文章: 65
了解!!我再來想一下怎麼處理好
 
舊 2015-05-02, 06:31 PM #12
回應時引用此文章
isnowcloud離線中  
isnowcloud
Regular Member
 

加入日期: Feb 2015
文章: 65
安裝完有提供一份文件供推敲
修改的部分還真不少,niginx轉到lighttpd要來研究一下

代碼:
First mail user:
    * Username: OO
    * Password: XX
    * SMTP/IMAP auth type: login
    * Connection security: STARTTLS or SSL/TLS

    You can login to webmail with this account, login name is full email address.


SSL cert keys (size: 2048):
    - /etc/ssl/certs/iRedMail.crt
    - /etc/ssl/private/iRedMail.key

Mail Storage:
    - Root directory: /var/mail
    - Mailboxes: /var/mail/vmail1
    - Backup scripts and copies: /var/mail/backup

Apache:
    * Configuration files:
        - /etc/apache2
        - /etc/apache2/apache2.conf
        - /etc/apache2/conf.d/*
    * Directories:
        - /usr/share/apache2
        - /var/www
    * See also:
        - /var/www/index.html

Nginx:
    * Configuration files:
        - /etc/nginx/nginx.conf
        - /etc/nginx/conf.d/default.conf
    * Directories:
        - /etc/nginx
        - /var/www
    * See also:
        - /var/www/index.html

php-fpm:
    * Configuration files:
        - /etc/php5/fpm/pool.d/www.conf
    * Socket: /var/run/php-fpm.socket

uWSGI:
    * Configuration files:
        - /etc/uwsgi/apps-available
    * Socket for iRedAdmin: /var/run/uwsgi_iredadmin.socket
PHP:
    * PHP config file for Apache: /etc/php5/apache2/php.ini
    * PHP config file for Nginx: /etc/php5/fpm/php.ini
    * Disabled functions:

MySQL:
    * Root user: root, Password: GG
    * Bind account (read-only):
        - Username: vmail, Password: XX
    * Vmail admin account (read-write):
        - Username: vmailadmin, Password: YY

此文章於 2015-05-02 08:30 PM 被 isnowcloud 編輯.
舊 2015-05-02, 08:28 PM #13
回應時引用此文章
isnowcloud離線中  
isnowcloud
Regular Member
 

加入日期: Feb 2015
文章: 65
請教一下有成功用postfix開啟smtp認證的朋友們
鳥哥的這個範例是真的嗎?
http://linux.vbird.org/linux_server/0390postfix.php

引用:
250-AUTH PLAIN LOGIN <==出現這個就是成功囉!




我這邊pop收信ok但是smtp的部分看了國內外好多文章說法大同小異
但是就是發信失敗,用上面的認證方式確認就是沒那一行因用的那一行

以下是我的執行結果



再用鳥哥的另一種方式(auth plain)確認是直接失敗但是我也不清楚密碼是否有誤
因為我這邊帳號是用mail address,用mmencode取得的亂碼有出現兩行和網路上的範例都不同



就內容來說應該是沒問題,但是就結果來說就是一堆問題
且變因太多了,不知當該怎麼debug,哀
以下是我postfix的全部參數,不知道有沒有人能給我點建議
postconf -n

引用:
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 4h
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
delay_warning_time = 0h
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 0
maximal_backoff_time = 4000s
maximal_queue_lifetime = 4h
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = bdmv.info
myhostname = 64gs.bdmv.info
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = (hostname)
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_run_delay = 300s
readme_directory = no
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
relayhost =
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
smtp-amavis_destination_recipient_limit = 1
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_loglevel = 0
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031,
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

此文章於 2015-05-03 12:54 AM 被 isnowcloud 編輯.
舊 2015-05-03, 12:46 AM #14
回應時引用此文章
isnowcloud離線中  
gotoyourmom
Amateur Member
 

加入日期: Feb 2005
文章: 42
不建議 ubuntu 完畢
舊 2015-05-03, 01:00 AM #15
回應時引用此文章
gotoyourmom離線中  
isnowcloud
Regular Member
 

加入日期: Feb 2015
文章: 65
請問是什麼意思?
postfix在ubuntu不能用?
舊 2015-05-03, 01:18 AM #16
回應時引用此文章
isnowcloud離線中  
darkangel
Major Member
 
darkangel的大頭照
 

加入日期: Aug 2001
文章: 211
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key

那個認證方式跟我以前單獨裝 Postfix 的不太一樣,你可能要查一下 iRedmail 是怎樣弄的。

還有我架站都用 BSD,Ubuntu 是開發軟體用,雖然我也都用 Ubuntu server 版就是了,不過現在其實跟 desktop 版一樣。

__________________
滿招損 謙受益
舊 2015-05-03, 01:23 AM #17
回應時引用此文章
darkangel離線中  
isnowcloud
Regular Member
 

加入日期: Feb 2015
文章: 65
http://www.iredmail.org/docs/allow....onnections.html
其實我也有查了一下,官方的講法更簡單
(其是default就是smtpd_tls_auth_only=yes)

我打算重灌系統再裝一次,再不行就只能到官方論壇去發問了

另外順道再請教一下
postfix有沒有支援pop3收件後自動刪信的這種功能?
以往用的mail好像default都是自動刪信沒想到postfix default沒有這樣設定

使用ubuntu就是他比較簡單
ppa/apt-get實在很好用也用的很習慣了
舊 2015-05-03, 01:44 AM #18
回應時引用此文章
isnowcloud離線中  
peter liou
Power Member
 
peter liou的大頭照
 

加入日期: Feb 2005
您的住址: 棺材板的故鄉
文章: 556
您的mail server ip是什麼型態?
__________________
29年煙齡 100.01.23 戒除滿四年
98.07.12 14:11 再添丁 3195g 50cm
舊 2015-05-03, 11:23 AM #19
回應時引用此文章
peter liou離線中  
isnowcloud
Regular Member
 

加入日期: Feb 2015
文章: 65
server是ipv4 ipv6都有
hostname -f(mail server指向的是一樣的ip)指向的是ipv4
舊 2015-05-03, 11:44 AM #20
回應時引用此文章
isnowcloud離線中  


    回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



所有的時間均為GMT +8。 現在的時間是01:36 AM.


vBulletin Version 3.0.1
powered_by_vbulletin 2025。