sendmail 配置问题

sendmail 配置问题

我想在我的系统上配置 sendmail,以便每个用户都可以发送电子邮件。我按照https://stackoverflow.com/questions/10359437/sendmail-how-to-configure-sendmail-on-ubuntu但得到

Jan 25 19:12:39 regDesktopHome sendmail[32386]: t0Q3CdAt032386: from=root, size=39, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Jan 25 19:12:39 regDesktopHome sm-mta[32387]: NOQUEUE: SYSERR(root): hash map "access": unsafe map file /etc/mail/access.db: Permission denied
Jan 25 19:12:39 regDesktopHome sm-mta[32387]: ruleset=check_relay, arg1=localhost, arg2=127.0.0.1, relay=localhost [127.0.0.1], reject=451 4.3.0 Temporary system failure. Please try again later.
Jan 25 19:12:39 regDesktopHome sendmail[32386]: t0Q3CdAt032386: [email protected], ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30039, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.3.0 Temporary system failure. Please try again later.
Jan 25 19:14:20 regDesktopHome sendmail[32455]: NOQUEUE: SYSERR(ron): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied

/var/log/mail.log我执行时为什么会出现错误?echo "My test email being sent from sendmail" | sudo /usr/sbin/sendmail [email protected]Temporary system failure

谢谢!

相关内容