1
Linux 討論版 / Re: POSTFIX新增账户问题
« 於: 2012-12-07 11:14 »
怎么没人回复啊。谢谢
這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。
[root@localhost server]# netstat -tlan | grep 9001
tcp 0 0 :::9001 :::* LISTEN
[root@localhost server]# jobs
[1]+ Running java -jar s.jar &
[root@niss ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1A5A8168036* 788 Thu Feb 16 18:13:20 chao@mail.niss.com
chao_fan@nisshotech.com.cn
1C1B516802A 800 Thu Feb 16 18:06:36 chao@mail.niss.com
(delivery temporarily suspended: Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
chao_fan@nisshotech.com.cn
-- 2 Kbytes in 2 Requests.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mail.niss.com
mydomain = niss.com
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
relay_domains = $mydestination
relay_domains = 163.com
relay_domains = nisshotech.com.cn
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
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = no
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
message_size_limit = 15728640
[root@niss ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1A5A8168036 788 Thu Feb 16 18:13:20 chao@mail.niss.com
(Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
chao_fan@nisshotech.com.cn
1C1B516802A 800 Thu Feb 16 18:06:36 chao@mail.niss.com
(Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
chao_fan@nisshotech.com.cn
ABE28168039 762 Thu Feb 16 18:34:23 chao@mail.niss.com
(Host or domain name not found. Name service error for name=vip.163.com type=MX: Host not found, try again)
php@vip.163.com
-- 4 Kbytes in 3 Requests.
tail /var/log/maillog
Feb 16 18:34:26 niss dovecot: pop3-login: Login: user=<jack>, method=PLAIN, rip=::ffff:192.168.0.192, lip=::ffff:192.168.0.201
Feb 16 18:34:26 niss dovecot: POP3(chao): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Feb 16 18:34:26 niss dovecot: POP3(jack): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Feb 16 18:34:43 niss postfix/smtp[3138]: ABE28168039: to=<php@vip.163.com>, relay=none, delay=20, delays=0.06/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=vip.163.com type=MX: Host not found, try again)
Feb 16 18:44:34 niss postfix/qmgr[2769]: 1C1B516802A: from=<chao@mail.niss.com>, size=800, nrcpt=1 (queue active)
Feb 16 18:44:34 niss postfix/qmgr[2769]: ABE28168039: from=<chao@mail.niss.com>, size=762, nrcpt=1 (queue active)
Feb 16 18:44:54 niss postfix/smtp[3182]: ABE28168039: to=<php@vip.163.com>, relay=none, delay=631, delays=611/0.01/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=vip.163.com type=MX: Host not found, try again)
Feb 16 18:44:54 niss postfix/smtp[3183]: 1C1B516802A: to=<chao_fan@nisshotech.com.cn>, relay=none, delay=2299, delays=2279/0.03/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
Feb 16 18:49:34 niss postfix/qmgr[2769]: 1A5A8168036: from=<chao@mail.niss.com>, size=788, nrcpt=1 (queue active)
Feb 16 18:49:54 niss postfix/smtp[3197]: 1A5A8168036: to=<chao_fan@nisshotech.com.cn>, relay=none, delay=2195, delays=2175/0.02/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=nisshotech.com.cn type=MX: Host not found, try again)
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
c:\="dos"
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 816871d7-20cc-47ac-943e-dee6d69f10a2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=816871d7-20cc-47ac-943e-dee6d69f10a2 ro mem=512M quiet splash mem=512M
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 816871d7-20cc-47ac-943e-dee6d69f10a2
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=816871d7-20cc-47ac-943e-dee6d69f10a2 ro single mem=512M
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 816871d7-20cc-47ac-943e-dee6d69f10a2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 816871d7-20cc-47ac-943e-dee6d69f10a2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sda1)" {
insmod fat
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 2d70-1709
drivemap -s (hd0) ${root}
chainloader +1
}
start
if [$? = 0];then
echo "OK";
else
echo "FAIL";
fi
#=================
start()
{
do_test1
if [$? != 0];then
do_test2
if [$? != 0];then
return 3
fi
return 1
fi
do_test2
if [$? != 0];then
return 2
fi
return 0
}
#=================
do_test1()
{
1=1
if [$? != 0];then
echo pass1;
return 0
else
echo fail1;
return 1;
fi
return 0
}
do_test2()
{
2=2
if [$? != 0];then
echo pass2;
return 0
else
echo fail2;
return 1;
fi
return 0
}
start
if [$? = 0];then
echo "OK";
else
echo "FAIL";
fi
#=================
start()
{
do_test1
if [$? != 0];then
return 1
fi
do_test2
if [$? != 0];then
return 2
fi
return 0
}
#=================
do_test1()
{
1=1
if [$? != 0];then
echo pass1;
return 0
else
echo fail1;
return 1;
fi
return 0
}
do_test2()
{
2=2
if [$? != 0];then
echo pass2;
return 0
else
echo fail2;
return 1;
fi
return 0
}
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
c:\="dos"
C:\wubildr.mbr = "Ubuntu"
administrator@ubuntu:~$ sudo apt-get update
Get:1 http://security.ubuntu.com lucid-security Release.gpg
Get:2 http://us.archive.ubuntu.com lucid Release.gpg
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
98% [3 Translation-en_US bzip2 0B] [Waiting for headers] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
73% [4 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
58% [5 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Get:6 http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
48% [6 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Get:7 http://us.archive.ubuntu.com lucid-updates Release.gpg
Get:8 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
48% [8 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Get:9 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
43% [9 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Get:10 http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
38% [10 Translation-en_US bzip2 0B] [Waiting for headers] [Connecting to security.ubuntu.com (91.189.92.166)]bzip2: (stdin) is not a bzip2 file.
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Get:11 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
34% [11 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers] 206B/s 16sbzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Get:12 http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
31% [12 Translation-en_US bzip2 0B] [Waiting for headers] [Connecting to security.ubuntu.com (91.189.92.166)] 206B/s 18sbzip2: (stdin) is not a bzip2 file.
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Get:13 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
29% [13 Translation-en_US bzip2 0B] [Connecting to us.archive.ubuntu.com (91.189.92.170)] [Waiting for headers] 206B/s 21sbzip2: (stdin) is not a bzip2 file.
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Get:14 http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
27% [14 Translation-en_US bzip2 0B] [Waiting for headers] [Connecting to security.ubuntu.com (91.189.92.166)] 206B/s 23sbzip2: (stdin) is not a bzip2 file.
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Get:15 http://us.archive.ubuntu.com lucid Release
Err http://us.archive.ubuntu.com lucid Release
Get:16 http://us.archive.ubuntu.com lucid-updates Release
Err http://us.archive.ubuntu.com lucid-updates Release
Get:17 http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
33% [17 Translation-en_US bzip2 0B] [Connecting to security.ubuntu.com (91.189.92.166)] 206B/s 25sbzip2: (stdin) is not a bzip2 file.
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Get:18 http://security.ubuntu.com lucid-security Release
Err http://security.ubuntu.com lucid-security Release
Fetched 8,400B in 10s (784B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com lucid Release: The following signatures were invalid: NODATA 1 NODATA 2
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com lucid-updates Release: The following signatures were invalid: NODATA 1 NODATA 2
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com lucid-security Release: The following signatures were invalid: NODATA 1 NODATA 2
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/Release
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid/Release
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/lucid-updates/Release
W: Some index files failed to download, they have been ignored, or old ones used instead.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
用dmesg | grep -in eth:674:[ 1.731125] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
680:[ 1.731873] eth0: RTL8168d/8111d at 0xffffc900041a0000, 20:cf:30:cc:76:0f, XID 083000c0 IRQ 35
699:[ 13.578725] udev: renamed network interface eth0 to eth14