HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   virtual user & domain problem (http://www.howtoforge.com/forums/showthread.php?t=19079)

laser144 6th January 2008 18:35

virtual user & domain problem
 
Hi,

Having followed the Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch)" (to the letterr I believe), I am having problems with both pop & smtp.

This is the error I get when trying to send mail:
PERM_FAILURE: SMTP Error (state 13): 554 5.7.1 <postmaster@quitter.nl>: Relay access denied

The pop errors are in the log below.

All help an/or pointers are most welcome.

Here is my mail log:

Jan 6 13:41:32 magistervela postfix/postfix-script: refreshing the Postfix mail system
Jan 6 13:41:32 magistervela postfix/master[22484]: reload configuration /etc/postfix
Jan 6 16:49:41 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 16:50:02 magistervela courierpop3login: LOGIN FAILED, user=schipper, ip=[::ffff:84.245.31.182]
Jan 6 16:50:23 magistervela courierpop3login: LOGIN FAILED, user=schipper, ip=[::ffff:84.245.31.182]
Jan 6 16:51:29 magistervela courierpop3login: Disconnected, ip=[::ffff:84.245.31.182]
Jan 6 17:01:24 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:01:29 magistervela courierpop3login: couriertls: accept: error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
Jan 6 17:01:29 magistervela courierpop3login: Disconnected, ip=[::ffff:84.245.31.182]
Jan 6 17:12:33 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:13:03 magistervela courierpop3login: chdir quitter.nl/anders/: No such file or directory
Jan 6 17:30:11 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:30:29 magistervela courierpop3login: chdir quitter.nl/webmaster/: No such file or directory
Jan 6 17:30:41 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:30:58 magistervela courierpop3login: chdir anders/anders/: No such file or directory
Jan 6 17:31:10 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:31:26 magistervela courierpop3login: chdir sailmaster.nl/schipper/: No such file or directory
Jan 6 17:31:40 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:31:48 magistervela courierpop3login: Disconnected, ip=[::ffff:84.245.31.182]
Jan 6 17:32:56 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:32:56 magistervela courierpop3login: chdir anders/anders/: No such file or directory
Jan 6 17:39:48 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:39:48 magistervela courierpop3login: chdir quitter.nl/webmaster/: No such file or directory
Jan 6 17:40:21 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:40:50 magistervela courierpop3login: chdir sailmaster.nl/schipper/: No such file or directory
Jan 6 17:40:52 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:40:52 magistervela courierpop3login: chdir quitter.nl/webmaster/: No such file or directory
Jan 6 17:41:09 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:41:09 magistervela courierpop3login: chdir anders/anders/: No such file or directory
Jan 6 17:41:16 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:41:17 magistervela courierpop3login: chdir sailmaster.nl/schipper/: No such file or directory
Jan 6 17:41:28 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:41:37 magistervela courierpop3login: chdir sailmaster.nl/webmaster/: No such file or directory
Jan 6 17:42:56 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:42:56 magistervela courierpop3login: LOGIN FAILED, user=anders, ip=[::ffff:84.245.31.182]
Jan 6 17:43:21 magistervela last message repeated 5 times
Jan 6 17:43:26 magistervela courierpop3login: Disconnected, ip=[::ffff:84.245.31.182]
Jan 6 17:45:47 magistervela postfix/postfix-script: refreshing the Postfix mail system
Jan 6 17:45:47 magistervela postfix/master[22484]: reload configuration /etc/postfix
Jan 6 17:48:23 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:48:23 magistervela courierpop3login: chdir sailmaster.nl/webmaster/: No such file or directory
Jan 6 17:49:48 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:49:48 magistervela courierpop3login: chdir quitter.nl/webmaster/: No such file or directory
Jan 6 17:50:21 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:51:18 magistervela courierpop3login: chdir sailmaster.nl/schipper/: No such file or directory
Jan 6 17:59:48 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 17:59:48 magistervela courierpop3login: chdir quitter.nl/webmaster/: No such file or directory
Jan 6 18:00:21 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 18:07:03 magistervela courierpop3login: Unexpected SSL connection shutdown.
Jan 6 18:07:03 magistervela courierpop3login: Disconnected, ip=[::ffff:84.245.31.182]
Jan 6 18:09:39 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 18:09:39 magistervela courierpop3login: chdir quitter.nl/webmaster/: No such file or directory
Jan 6 18:10:21 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 18:10:21 magistervela courierpop3login: couriertls: accept: error:1408A10B:SSL routines:SSL3_GET_CLIENT_HELLO:wrong version number
Jan 6 18:10:21 magistervela courierpop3login: Disconnected, ip=[::ffff:84.245.31.182]
Jan 6 18:14:35 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]
Jan 6 18:14:43 magistervela courierpop3login: chdir quitter.nl/anders/: No such file or directory
Jan 6 18:14:50 magistervela courierpop3login: Connection, ip=[::ffff:84.245.31.182]


Thx,

Andy

falko 7th January 2008 14:39

Quote:

Originally Posted by laser144
This is the error I get when trying to send mail:
PERM_FAILURE: SMTP Error (state 13): 554 5.7.1 <postmaster@quitter.nl>: Relay access denied

Please enable "Server requires authentication" in your email client.

Quote:

Originally Posted by laser144
Jan 6 17:13:03 magistervela courierpop3login: chdir quitter.nl/anders/: No such file or directory

You must send an email first to that user before you try to fetch email for the first time. The directories are created when the first email arrives.

laser144 8th January 2008 12:43

Still having problem
 
Hi,

:confused: In order to make sure I did'n have any typos, I did a complete reinstall (copy/paste) from the tutorial. I now have these problems:

I still get the no dir exists warning when trying to log in, but mail sent from my GMail account doesn't bounce but times out:

Technical details of temporary failure:
TEMP_FAILURE: Could not initiate SMTP conversation with any hosts:
[mail.sailmaster.nl. (5): Connection timed out]

Mail sent to the second domain I set up bounces with the previously mentioned relay error
(I have entered 2 domains in mySQL - sailmaster.nl and quitter.nl. The hostname of my server is magistervela.sailmaster.nl.) The quitter.nl mail bounces.

Regards,

Anders

falko 8th January 2008 18:14

Does mail.sailmaster.nl point to the right server? You can check that with
Code:

dig mail.sailmaster.nl

laser144 8th January 2008 18:21

Here is the output:

; <<>> DiG 9.3.4 <<>> mail.sailmaster.nl
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51884
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.sailmaster.nl. IN A

;; ANSWER SECTION:
mail.sailmaster.nl. 1 IN A 84.245.31.182

;; Query time: 281 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Jan 8 18:18:21 2008
;; MSG SIZE rcvd: 52

Regards,

Anders

falko 9th January 2008 16:36

Is 84.245.31.182 the correct IP?

laser144 9th January 2008 20:16

Yes it is.

It just does not seem to make the new dir.
FYI: I did yet another clean install, still running in to the problem. Then I added Virtual Hosting With Proftpd And MySQL as described in the tutorial and there everything works like a charm. I guess I am missing something, but really don't know what...

Anders

falko 10th January 2008 16:34

I can't connect either:

Code:

mh1:~# telnet mail.sailmaster.nl 25
Trying 84.245.31.182...

mh1:~#

Are you sure that Postfix is running?
What's the output of
Code:

netstat -tap
and
Code:

iptables -L
?
Is the server behind a router? If so, did you forward port 25 from your router to the server?

laser144 11th January 2008 11:55

netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:10024 *:* LISTEN 17442/amavisd (mast
tcp 0 0 localhost.localdo:10025 *:* LISTEN 17270/master
tcp 0 0 localhost.localdo:mysql *:* LISTEN 15536/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1660/portmap
tcp 0 0 *:auth *:* LISTEN 2008/inetd
tcp 0 0 *:ftp *:* LISTEN 7804/proftpd: (acce
tcp 0 0 *:smtp *:* LISTEN 17270/master
tcp 0 0 *:2974 *:* LISTEN 2049/rpc.statd
tcp6 0 0 *:imaps *:* LISTEN 15809/couriertcpd
tcp6 0 0 *:pop3s *:* LISTEN 15838/couriertcpd
tcp6 0 0 *:pop3 *:* LISTEN 15819/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 15792/couriertcpd
tcp6 0 0 *:www *:* LISTEN 7371/apache2
tcp6 0 0 *:ssh *:* LISTEN 2030/sshd
tcp6 0 0 *:smtp *:* LISTEN 17270/master
tcp6 0 0 *:https *:* LISTEN 7371/apache2
tcp6 0 296 magistervela.sailma:ssh ::ffff:192.168.1.5:1472 ESTABLISHED20843/0



iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Ports 110 & 25 are forwarded

Regards,

Anders

falko 12th January 2008 17:02

Please ask your ISP if they block port 25.


All times are GMT +2. The time now is 22:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.