Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th January 2008, 19:35
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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

Last edited by laser144; 6th January 2008 at 20:41.
Reply With Quote
Sponsored Links
  #2  
Old 7th January 2008, 15:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th January 2008, 13:43
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default Still having problem

Hi,

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

Last edited by laser144; 8th January 2008 at 17:27.
Reply With Quote
  #4  
Old 8th January 2008, 19:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Does mail.sailmaster.nl point to the right server? You can check that with
Code:
dig mail.sailmaster.nl
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 8th January 2008, 19:21
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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

Last edited by laser144; 9th January 2008 at 11:21.
Reply With Quote
  #6  
Old 9th January 2008, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Is 84.245.31.182 the correct IP?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 9th January 2008, 21:16
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #8  
Old 10th January 2008, 17:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 11th January 2008, 12:55
laser144 laser144 is offline
Member
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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 *op3s *:* LISTEN 15838/couriertcpd
tcp6 0 0 *op3 *:* 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
Reply With Quote
  #10  
Old 12th January 2008, 18:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

Please ask your ISP if they block port 25.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
Little problem with user dirs Nez Installation/Configuration 2 5th December 2007 23:21
log files cruz Technical 3 15th May 2007 15:35
Virtual E-Mail Problem amurray Installation/Configuration 3 10th July 2006 11:07


All times are GMT +2. The time now is 17:13.


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