[問題]mail server - postfix courier-imap courier-pop

這個版面主要討論 debian 在 server 端的應用問題, server 種類繁多..舉凡 Web Server 、 File Server、 DHCP Server..等等。

版主: 阿信

[問題]mail server - postfix courier-imap courier-pop

文章Qwe » 週二 6月 22, 2004 10:05 pm

我的server
2hi.idv.tw
搞了老半天都怪怪的
postfix > 用ootlook送的到server > 不過都寄不到別人那邊 寄給自己也不行

courier-imap courier-pop > 驗證都無法通過

這該怎麼做呢??
Qwe
 

re:[問題]mail server - postfix courier-imap courier-pop

文章timeriver » 週三 6月 23, 2004 12:36 am

/etc/postfix/main.cf 檔可以看一下嗎
"Hope deffered makes the heart sick. But when dreams come true.There is life and joy" proverbs 13:12
timeriver
懵懂的國中生
懵懂的國中生
 
文章: 106
註冊時間: 週三 3月 31, 2004 12:02 am
來自: 基隆

re:[問題]mail server - postfix courier-imap courier-pop

文章Qwe » 週三 6月 23, 2004 5:58 pm

我的main.cf


# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no

# appending .domain is the MUA's job.
inet_interfaces = all
home_mailbox = Maildir/

append_dot_mydomain = no
myhostname = 2hi.idv.tw
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = 2hi.idv.tw, debian.2hi.idv.tw, dns.2hi.idv.tw, localhost
myorigin = /etc/mailname
mydestination = 2hi.idv.tw, debian.2hi.idv.tw, dns.2hi.idv.tw, localhost
relay_domains = $mydestination, kuas.edu.tw
relayhost =
mynetworks = 127.0.0.0/8

mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
content_filter = amavis:

smtpd_sasl_local_domain = $myhostname
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
#broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
Qwe
 

re:[問題]mail server - postfix courier-imap courier-pop

文章Qwe » 週三 6月 23, 2004 6:02 pm

我的postconf

2bounce_notice_recipient = postmaster
access_map_reject_code = 554
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_mail_to_commands = alias,forward
allow_mail_to_files = alias,forward
allow_min_user = no
allow_percent_hack = yes
allow_untrusted_routing = no
alternate_config_directories =
always_bcc =
append_at_myorigin = yes
append_dot_mydomain = no
best_mx_transport =
biff = no
body_checks =
bounce_notice_recipient = postmaster
bounce_size_limit = 50000
broken_sasl_auth_clients = no
canonical_maps =
command_directory = /usr/sbin
command_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEF
GHIJKLMNOPQRSTUVWXYZ
command_time_limit = 1000s
config_directory = /etc/postfix
content_filter = amavis:
daemon_directory = /usr/lib/postfix
daemon_timeout = 18000s
debug_peer_level = 2
debug_peer_list =
default_database_type = hash
default_delivery_slot_cost = 5
default_delivery_slot_discount = 50
default_delivery_slot_loan = 3
default_destination_concurrency_limit = 10
default_destination_recipient_limit = 50
default_extra_recipient_limit = 1000
default_minimum_delivery_slots = 3
default_privs = nobody
default_process_limit = 50
default_recipient_limit = 10000
default_transport = smtp
default_verp_delimiters = +=
defer_transports =
delay_notice_recipient = postmaster
delay_warning_time = 0h
deliver_lock_attempts = 20
deliver_lock_delay = 1s
disable_dns_lookups = no
disable_verp_bounces = no
disable_vrfy_command = no
dont_remove = 0
double_bounce_sender = double-bounce
duplicate_filter_limit = 1000
empty_address_recipient = MAILER-DAEMON
error_notice_recipient = postmaster
expand_owner_alias = no
export_environment = TZ MAIL_CONFIG
extract_recipient_limit = 10240
fallback_relay =
fallback_transport =
fast_flush_domains = $relay_domains
fast_flush_purge_time = 7d
fast_flush_refresh_time = 12h
fault_injection_code = 0
fork_attempts = 5
fork_delay = 1s
forward_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEF
GHIJKLMNOPQRSTUVWXYZ
forward_path = $home/.forward${recipient_delimiter}${extension},$home/.forward
hash_queue_depth = 2
hash_queue_names = incoming,active,deferred,bounce,defer,flush
header_checks =
header_size_limit = 102400
home_mailbox = Maildir/
hopcount_limit = 50
ignore_mx_lookup_error = no
import_environment = MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY
in_flow_delay = 1s
inet_interfaces = all
initial_destination_concurrency = 5
invalid_hostname_reject_code = 501
ipc_idle = 100s
ipc_timeout = 3600s
line_length_limit = 2048
lmtp_cache_connection = yes
lmtp_connect_timeout = 0s
lmtp_data_done_timeout = 600s
lmtp_data_init_timeout = 120s
lmtp_data_xfer_timeout = 180s
lmtp_lhlo_timeout = 300s
lmtp_mail_timeout = 300s
lmtp_quit_timeout = 300s
lmtp_rcpt_timeout = 300s
lmtp_rset_timeout = 300s
lmtp_sasl_auth_enable = no
lmtp_sasl_password_maps =
lmtp_sasl_security_options = noplaintext, noanonymous
lmtp_skip_quit_response = no
lmtp_tcp_port = 24
local_command_shell =
local_destination_concurrency_limit = 2
local_destination_recipient_limit = 1
local_recipient_maps =
local_transport = local
luser_relay =
mail_name = Postfix
mail_owner = postfix
mail_release_date = 20020528
mail_spool_directory = /var/mail
mail_version = 1.1.11
mailbox_command =
mailbox_command_maps =
mailbox_delivery_lock = flock, dotlock
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
maps_rbl_domains =
maps_rbl_reject_code = 554
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions =
max_idle = 100s
max_use = 100
maximal_backoff_time = 4000s
maximal_queue_lifetime = 5d
message_size_limit = 10240000
minimal_backoff_time = 1000s
mydestination = 2hi.idv.tw, debian.2hi.idv.tw, dns.2hi.idv.tw, localhost
mydomain = idv.tw
myhostname = 2hi.idv.tw
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = /etc/mailname
newaliases_path = /usr/bin/newaliases
non_fqdn_reject_code = 504
notify_classes = resource,software
owner_request_special = yes
parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks
,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_m
aps
permit_mx_backup_networks =
prepend_delivered_header = command, file, forward
process_id_directory = pid
program_directory = /usr/lib/postfix
propagate_unmatched_extensions = canonical, virtual
qmgr_fudge_factor = 100
qmgr_message_active_limit = 10000
qmgr_message_recipient_limit = 10000
qmgr_message_recipient_minimum = 10
qmgr_site_hog_factor = 100
qmqpd_authorized_clients =
qmqpd_error_delay = 5s
qmqpd_timeout = 300s
queue_directory = /var/spool/postfix
queue_minfree = 0
queue_run_delay = 1000s
readme_directory = no
recipient_canonical_maps =
recipient_delimiter = +
reject_code = 554
relay_domains = $mydestination, kuas.edu.tw
relay_domains_reject_code = 554
relayhost =
relocated_maps =
require_home_directory = no
resolve_dequoted_address = yes
sample_directory = /etc/postfix
sender_canonical_maps =
sendmail_path = /usr/sbin/sendmail
service_throttle_time = 60s
setgid_group = postdrop
smtp_always_send_ehlo = yes
smtp_bind_address =
smtp_connect_timeout = 0s
smtp_data_done_timeout = 600s
smtp_data_init_timeout = 120s
smtp_data_xfer_timeout = 180s
smtp_destination_concurrency_limit = $default_destination_concurrency_limit
smtp_destination_recipient_limit = $default_destination_recipient_limit
smtp_helo_timeout = 300s
smtp_line_length_limit = 990
smtp_mail_timeout = 300s
smtp_never_send_ehlo = no
smtp_pix_workaround_delay_time = 10s
smtp_pix_workaround_threshold_time = 500s
smtp_quit_timeout = 300s
smtp_randomize_addresses = yes
smtp_rcpt_timeout = 300s
smtp_sasl_auth_enable = no
smtp_sasl_password_maps =
smtp_sasl_security_options = noplaintext, noanonymous
smtp_skip_4xx_greeting = yes
smtp_skip_5xx_greeting = yes
smtp_skip_quit_response = yes
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions =
smtpd_delay_reject = yes
smtpd_error_sleep_time = 5s
smtpd_etrn_restrictions =
smtpd_hard_error_limit = 100
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_history_flush_threshold = 100
smtpd_junk_command_limit = 100
smtpd_noop_commands =
smtpd_null_access_lookup_key = <>
smtpd_recipient_limit = 1000
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check
_relay_domains
smtpd_restriction_classes =
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_login_maps =
smtpd_sender_restrictions =
smtpd_soft_error_limit = 10
smtpd_timeout = 300s
soft_bounce = no
stale_lock_time = 500s
strict_rfc821_envelopes = no
sun_mailtool_compatibility = no
swap_bangpath = yes
syslog_facility = mail
syslog_name = postfix
transport_maps =
transport_retry_time = 60s
trigger_timeout = 10s
undisclosed_recipients_header = To: undisclosed-recipients:;
unknown_address_reject_code = 450
unknown_client_reject_code = 450
unknown_hostname_reject_code = 450
verp_delimiter_filter = -=+
virtual_gid_maps =
virtual_mailbox_base =
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl
virtual_mailbox_maps =
virtual_maps =
virtual_minimum_uid = 100
virtual_uid_maps =
Qwe
 

Re: [問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週三 6月 23, 2004 7:34 pm

Qwe 寫:我的server
2hi.idv.tw
搞了老半天都怪怪的
postfix > 用ootlook送的到server > 不過都寄不到別人那邊 寄給自己也不行

courier-imap courier-pop > 驗證都無法通過

這該怎麼做呢??


courier-imap courier-pop
的用戶帳號跟密需另外設定,跟postfix的用戶設定無關
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週三 6月 23, 2004 9:07 pm

請問是哪一個檔案呢?
這定那些東西?
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週三 6月 23, 2004 11:38 pm

這有點麻煩,
因為我的系統是 FreeBSD 可能會同你的os有些差異,
要先確定你的認証方是是那一種,然後
#man makeuserdb
找到該認証模組所對應的說明看一下,跟著做就可以了。
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 1:11 am

root@debian:/etc/courier# makeuserdb
/etc/courier/userdb: MAY NOT HAVE GROUP OR WORLD PERMISSIONS!!
這該怎麼辦?
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 1:15 am

看來我是這種
authpam

該怎麼設定呢?
還有我mail送到server後~都不知去那ㄌ~傳不出去
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 5:57 am

authpam的話用的是系統帳號,
請先採指令 pw2userdb 再 makeuserdb看看。

傳不出去的mail應該都到alias所指定的postmaster那去了
可檢視maillog分析問題的一些狀況。
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 9:40 am

root@debian:~# pw2userdb > /etc/courier/userdb
root@debian:~# makeuserdb
/etc/courier/userdb: MAY NOT HAVE GROUP OR WORLD PERMISSIONS!!
root@debian:~#

應該是有地方不對不過我不知道在那


root@debian:/# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
0CCA03733 615 Mon Jun 21 06:27:34 root@2hi.idv.tw
root@2hi.idv.tw

1500474AF 615 Thu Jun 24 06:27:30 root@2hi.idv.tw
root@2hi.idv.tw

1A82C7969 498 Tue Jun 22 22:07:33 qwe@2hi.idv.tw
n9043103@cc.kuas.edu.tw
qwe@2hi.idv.tw

6609C76E2 496 Mon Jun 21 22:42:28 qwe@2hi.idv.tw
qwe@2hi.idv.tw
n9043103@cc.kuas.edu.tw

75B21AAA 1141 Tue Jun 22 22:17:16 tester@testvirus.org
qwe@2hi.idv.tw

96E2F779D 1392 Tue Jun 22 19:57:53 qwe@2hi.idv.tw
n9043103@cc.kuas.edu.tw

AD16C569F 615 Tue Jun 22 06:27:41 root@2hi.idv.tw
(unknown mail transport error)
root@2hi.idv.tw

C87FA773C 1392 Tue Jun 22 18:47:58 qwe@2hi.idv.tw
(unknown mail transport error)
n9043103@cc.kuas.edu.tw

E3A08771E 535 Mon Jun 21 22:05:28 qwe@2hi.idv.tw
n9043103@cc.kuas.edu.tw

-- 8 Kbytes in 9 Requests.

這些信會一直卡在那邊~怎麼處理呢?
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 11:03 am

我把postfix的Maildir拿掉嘞~
openwebmail可以在本機收發信嘞~
不過到外面還是不行阿

how to do ?

root@debian:/root# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
0CCA03733 615 Mon Jun 21 06:27:34 root@2hi.idv.tw
(temporary failure)
root@2hi.idv.tw

1A82C7969 498 Tue Jun 22 22:07:33 qwe@2hi.idv.tw
(temporary failure)
qwe@2hi.idv.tw
n9043103@cc.kuas.edu.tw

27A847A4D 754 Thu Jun 24 10:55:09 root@debian.unknow
(host turtle.ee.ncku.edu.tw[140.116.72.72] said: 450 Client host rejected: cannot find your hostname, [140.127.117.230])
openwebmail@turtle.ee.ncku.edu.tw

4CA927A61 707 Thu Jun 24 11:17:31 qwe@2hi.idv.tw
(connect to ccna.kuas.edu.tw[140.127.113.60]: Connection refused)
n9043103@ccna.kuas.edu.tw

6609C76E2 496 Mon Jun 21 22:42:28 qwe@2hi.idv.tw
(temporary failure)
qwe@2hi.idv.tw
n9043103@cc.kuas.edu.tw

75B21AAA 1141 Tue Jun 22 22:17:16 tester@testvirus.org
(temporary failure)
qwe@2hi.idv.tw

794787A44 689 Thu Jun 24 10:42:00 qwe@2hi.idv.tw
(connect to ccna.kuas.edu.tw[140.127.113.60]: Connection refused)
qwe@ccna.kuas.edu.tw

9364C7A5D 707 Thu Jun 24 11:16:51 qwe@2hi.idv.tw
(connect to ccna.kuas.edu.tw[140.127.113.60]: Connection refused)
n9043103@ccna.kuas.edu.tw

96E2F779D 1392 Tue Jun 22 19:57:53 qwe@2hi.idv.tw
(temporary failure)
n9043103@cc.kuas.edu.tw

AD16C569F 615 Tue Jun 22 06:27:41 root@2hi.idv.tw
(temporary failure)
root@2hi.idv.tw

B78867A53 707 Thu Jun 24 11:16:20 qwe@2hi.idv.tw
(connect to ccna.kuas.edu.tw[140.127.113.60]: Connection refused)
n9043103@ccna.kuas.edu.tw

C409F7A63 707 Thu Jun 24 11:17:40 qwe@2hi.idv.tw
(connect to ccna.kuas.edu.tw[140.127.113.60]: Connection refused)
n9043103@ccna.kuas.edu.tw

C87FA773C 1392 Tue Jun 22 18:47:58 qwe@2hi.idv.tw
(temporary failure)
n9043103@cc.kuas.edu.tw

E3A08771E 535 Mon Jun 21 22:05:28 qwe@2hi.idv.tw
(temporary failure)
n9043103@cc.kuas.edu.tw

-- 12 Kbytes in 14 Requests.
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 1:35 pm

courier-imap courier-pop 我放棄他們了

改用wu-imap&ipopd
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 1:40 pm

送信好像也都沒問題ㄌ
訪客
 

re:[問題]mail server - postfix courier-imap courier-pop

文章訪客 » 週四 6月 24, 2004 3:23 pm

應該都ok拉
最後一個問題 下面這該怎麼除掉呢?
qwe@debian:/var/lib$ mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
27A847A4D 754 Thu Jun 24 10:55:09 root@debian.unknow
(host turtle.ee.ncku.edu.tw[140.116.72.72] said: 450 Client host rejected: cannot find your hostname, [140.127.117.230])
openwebmail@turtle.ee.ncku.edu.tw

-- 0 Kbytes in 1 Request.
訪客
 

下一頁

回到 debian server

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客

cron