Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th January 2009, 18:07
tyliong tyliong is offline
Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mail problems after following Virtual Users And Domains With Postfix, Courier

I followed the instructions on "Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)" and everything is running but I can't get outlook to sync with the server because of some permission or file creation problem. the smtp server seems to be working as i do smtp.mydomain.com and a test email can be sent through and the login is accepted.

However the pop3 server is not responding. Is pop3.mydomain.com suppose to be the pop server or is it suppose to something else?

Jan 6 21:55:28 localhost pop3d: Connection, ip=[::ffff:210.193.49.322]
Jan 6 21:56:13 localhost pop3d: chdir mydomain.com/mydomain_director/: No such file or directory
Jan 6 21:56:30 localhost pop3d: Connection, ip=[::ffff:210.193.49.322]
Jan 6 21:56:48 localhost pop3d: LOGIN FAILED, user=mydomain_mailer, ip=[::ffff:210.193.49.322]
tail: cannot open `error' for reading: No such file or directory


i seem to have be able to send a test message



Jan 6 22:09:24 localhost postfix/smtpd[21892]: connect from bb121-6-12-193.myisp.com[123.4.12.123]
Jan 6 22:09:25 localhost postfix/smtpd[21892]: 1D60D5720049: client=bb121-6-12-123.myisp.com[123.4.12.123]
Jan 6 22:09:25 localhost postfix/cleanup[21900]: 1D60D5720049: message-id=<20090106140925.1D60D5720049@casper.mydomain.co m>
Jan 6 22:09:25 localhost postfix/qmgr[15155]: 1D60D5720049: from=<mydomain_mailer@mydomain.com>, size=753, nrcpt=1 (queue active)
Jan 6 22:09:25 localhost postfix/smtpd[21892]: disconnect from bb121-6-12-123.myisp.com[123.4.12.123]
Forward Message


One extra question, how do i stop an account from receiving email but allow it to send email? this is for a user authentication system.
this is the mail log error. apparently there are no directories created for the users
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2009, 18:20
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

Are you sure you have given permissions to the /home/vmail directory as per the howto?

As for an e-mail addy that can send but not receive you just send with a from addy that doesn't exist. Something like no-reply@mydomain.com. The mail server doesn't need to know about it at all. However if you need to authenticate against your SMTP server in order to send that then you will need to provide your script with credentials (any will do, you don't need to setup an specifically for it).
Reply With Quote
  #3  
Old 6th January 2009, 18:27
tyliong tyliong is offline
Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hmm i think the second question should be in another thread. don't want to get the two mixed up.(btw i still don't get what u mean but never mind i'll start another thread on it)

Back to the important thing yes i did try this:

groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /home/vmail -m

which gives me back

[root@localhost ~]# groupadd -g 5000 vmail
groupadd: group vmail exists
You have new mail in /var/spool/mail/root

[root@localhost ~]# useradd -g vmail -u 5000 vmail -d /home/vmail -m
useradd: user vmail exists


is there something i have missed?
Reply With Quote
  #4  
Old 6th January 2009, 18:30
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

Well that creates the user and group on the system. So that's a good start.

What are the permissions on the /home/vmail directory? Who owns it?

'ls -la /home'

Would spit out what we need to see.
Reply With Quote
  #5  
Old 6th January 2009, 18:32
tyliong tyliong is offline
Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

drwx------ 3 vmail vmail 4096 Jan 6 13:19 vmail
Reply With Quote
  #6  
Old 6th January 2009, 18:39
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

And the contents of the vmail directory. Does it have the same perms/ownership?
Reply With Quote
  #7  
Old 6th January 2009, 18:43
tyliong tyliong is offline
Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

drwx------ 3 vmail vmail 4096 Jan 6 13:19 .
drwxr-xr-x 6 root root 4096 Jan 6 13:19 ..
-rw-r--r-- 1 vmail vmail 33 Jan 6 13:19 .bash_logout
-rw-r--r-- 1 vmail vmail 176 Jan 6 13:19 .bash_profile
-rw-r--r-- 1 vmail vmail 124 Jan 6 13:19 .bashrc
drwxr-xr-x 4 vmail vmail 4096 Jan 6 13:19 .mozilla
-rw-r--r-- 1 vmail vmail 658 Jan 6 13:19 .zshrc
Reply With Quote
  #8  
Old 6th January 2009, 18:46
volksman volksman is offline
Senior Member
 
Join Date: May 2007
Posts: 124
Thanks: 2
Thanked 16 Times in 14 Posts
Default

hrm...interesting.

Looks like postfix isn't creating the domain/user directories. Did you send a test message TO an account in your domain? IE send a message to you@yourdomain.com and make sure your server logs show it was received and sorted by your mail server. Then check the /home/vmail dir again to see if a directory "yourdomain.com" was created with a user directory under it called "you" (based on my example above).
Reply With Quote
  #9  
Old 6th January 2009, 18:49
tyliong tyliong is offline
Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how do i do that "mail someone@domain.com" ??
Reply With Quote
  #10  
Old 6th January 2009, 18:51
tyliong tyliong is offline
Member
 
Join Date: Jan 2009
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

i can't do that for some reason it stalls after i type subject
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
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 15:33
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 10:50
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51


All times are GMT +2. The time now is 07:30.


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