Apache James 在哪里存储(失败的)传出消息

Apache James 在哪里存储(失败的)传出消息

来自詹姆士安慰:

jvm 1    | INFO  11:01:03,519 | james.mailetcontext | Attempting delivery of Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost to host bounceme.net. at 166.90.15.238 from fubar@wtf for addresses [thufir@localhost]
jvm 1    | INFO  11:02:03,579 | james.mailetcontext | Could not connect to SMTP host: 166.90.15.238, port: 25
jvm 1    | INFO  11:02:03,580 | james.mailetcontext | Temporary exception delivering mail (Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost: 
jvm 1    | INFO  11:02:03,580 | james.mailetcontext | Storing message Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost into outgoing after 0 retries

我并不期望消息能够被传递。但是,消息存储在哪里呢?

thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ cat conf/james-database.properties 
# MySQL JDBC database properties
database.driverClassName=com.mysql.jdbc.Driver
database.url=jdbc:mysql://localhost/james
database.username=james
database.password=password
vendorAdapter.database=MYSQL
openjpa.streaming=false

thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ mysql -u james -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 121
Server version: 5.5.22-0ubuntu1 (Ubuntu)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use james;
Database changed
mysql> show tables;
Empty set (0.00 sec)

mysql> quit
Bye
thufir@dur:~/apache-james-3.0-beta4$ 

我没有看到任何内容/var/mail

thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ ll /var/mail
total 12
drwxrwsr-x  2 root   mail 4096 Aug 16 12:50 ./
drwxr-xr-x 15 root   root 4096 Aug 21 03:40 ../
-rw-------  1 news   mail 3680 Aug 14 09:23 news
-rw-------  1 root   mail    0 Aug 16 12:50 root
-rw-------  1 thufir mail    0 Aug 16 01:59 thufir
thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ ll /var/mail/thufir
-rw------- 1 thufir mail 0 Aug 16 01:59 /var/mail/thufir
thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ nl /var/mail/thufir
thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ cat /var/mail/thufir
thufir@dur:~/apache-james-3.0-beta4$ 

但我不确定要查找什么。它似乎指向 james 文件夹和 james 日志,但到目前为止,它们并没有提供太多线索。

此信息在日志中重复:

thufir@dur:~/apache-james-3.0-beta4$ 
thufir@dur:~/apache-james-3.0-beta4$ tail log/james-server.log
INFO  11:20:39,415 | james.mailetcontext | Temporary exception delivering mail (Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost: 
INFO  11:20:39,416 | james.mailetcontext | Storing message Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost into outgoing after 2 retries
INFO  12:05:42,471 | james.mailetcontext | Attempting delivery of Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost to host bounceme.net. at 166.90.15.238 from fubar@wtf for addresses [thufir@localhost]
INFO  12:06:42,530 | james.mailetcontext | Could not connect to SMTP host: 166.90.15.238, port: 25
INFO  12:06:42,530 | james.mailetcontext | Attempting delivery of Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost to host bounceme.net. at 166.90.15.238 from fubar@wtf for addresses [thufir@localhost]
INFO  12:07:42,570 | james.mailetcontext | Could not connect to SMTP host: 166.90.15.238, port: 25
INFO  12:07:42,571 | james.mailetcontext | Attempting delivery of Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost to host bounceme.net. at 166.90.15.238 from fubar@wtf for addresses [thufir@localhost]
INFO  12:07:49,632 | james.mailetcontext | Could not connect to SMTP host: 166.90.15.238, port: 25
INFO  12:07:49,632 | james.mailetcontext | Temporary exception delivering mail (Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost: 
INFO  12:07:49,632 | james.mailetcontext | Storing message Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost into outgoing after 3 retries
thufir@dur:~/apache-james-3.0-beta4$ 

但是,我看到日志中没有显示任何信息,表明消息Mail1345571942295-bf02a4ca-791c-4776-a194-809aba6e4c1a-to-localhost在“传出”中的存储位置。该日志消息是什么意思?

答案1

通常都是这样的$JAMES_DIR/var/mail/error

相关内容