Question : Testing Postfix

I've installed postfix on my local development machine (Ubuntu 10.4). I would like to do a test. I've found the following script, but have problems executing it.

telnet 127.0.0.1 25
EHLO 127.0.0.1
MAIL FROM: <from-email>
RCPT TO: <recipient-email>
DATA
Type message here.
. <Enter>

http://www.linuxquestions.org/questions/linux-software-2/how-do-you-test-postfix-for-sending-mail-out-106027/

I enter the commands line by line and get the following results:

r7af@r7af-ubuntu:~$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 r7af-ubuntu ESMTP Sendmail 8.14.3/8.14.3/Debian-9.1ubuntu1; Tue, 6 Jul 2010 17:32:00 +0200; (No UCE/UBE) logging access from: localhost.r7af-ubuntu(OK)-localhost.r7af-ubuntu [127.0.0.1]
EHLO 127.0.0.1
250-r7af-ubuntu Hello localhost.r7af-ubuntu [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
MAIL FROM: [email protected]
451 4.3.0 Temporary system failure. Please try again later.

The error log reports the following:

Jul  6 17:13:40 r7af-ubuntu postfix/master[11352]: fatal: bind 0.0.0.0 port 25: Address already in use
Jul  6 17:27:01 r7af-ubuntu sm-mta[11406]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory

What can I do to get this working?

Answer : Testing Postfix

I think the reason is a wrong owner for the file 'access.db'. Also check owner for 'aliases.db'.

Correct is the user root. Try:

chown root:smmsp /etc/mail/access.db

If it doesn't work, check owner for the other files and directorys.

A complete decription you can find in "sendmail 8.13 Compandium" from Brian Costales, Chapter 10, Maintain security with sendmail. Or try this link: https://blue-labs.org/software/sm-pgsql/

Regards, Tobias
Random Solutions  
 
programming4us programming4us