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 18th March 2006, 20:41
Torsson Torsson is offline
Member
 
Join Date: Mar 2006
Posts: 62
Thanks: 0
Thanked 3 Times in 3 Posts
Default Virtual Users And Domains With Postfix, Courier And MySQL

Hi, the howto guide is great, but i have a little problem.

First when i had done everything in the howto i had problem with

-ERR Maildir: No such file or directory

but when i changed from

MYSQL_MAILDIR_FIELD CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
to
MYSQL_MAILDIR_FIELD Maildir

i stoped get those messages.

but then i get

-ERR Login failed

And i have tryed to send a mail to the user

And i get another strange thing, but this time with imap.
when i do telnet localhost 143 and write login user@domain.com mypassword
i get this

login NO Error in IMAP command received by server.

Quote:
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc. See COPYING for distribution information.
login torsson@aitd-gaming.net mypassword
login NO Error in IMAP command received by server.

What have i done wrong?.
Reply With Quote
Sponsored Links
  #2  
Old 18th March 2006, 22:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

Quote:
Originally Posted by Torsson
Hi, the howto guide is great, but i have a little problem.

First when i had done everything in the howto i had problem with

-ERR Maildir: No such file or directory
You must send an email to that user first. The Maildir gets 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 19th March 2006, 11:12
Torsson Torsson is offline
Member
 
Join Date: Mar 2006
Posts: 62
Thanks: 0
Thanked 3 Times in 3 Posts
Default

When i try to send mail to the user my other mail said this:

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

torsson@aitd-gaming.net

Anywhon know what is wrong?... hmm maby firewall problems, but what ports needs to be open ?
Reply With Quote
  #4  
Old 19th March 2006, 12:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

Quote:
Originally Posted by Torsson
When i try to send mail to the user my other mail said this:

This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

torsson@aitd-gaming.net
There must be a reason mentioned in the mail.
What's in the mail log when the delivery fails?
__________________
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 19th March 2006, 12:46
Torsson Torsson is offline
Member
 
Join Date: Mar 2006
Posts: 62
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Now when i open port 25 110 i dont get a falied but it still says
-ERR Maildir: No such file or directory when i try with telnet

And with opera pop3 mail
Reply With Quote
  #6  
Old 19th March 2006, 13:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

What's in the mail log?
__________________
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 19th March 2006, 14:23
Torsson Torsson is offline
Member
 
Join Date: Mar 2006
Posts: 62
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Maby this is the problem:

telnet localhost 25
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Mail log dosent say anything about why he didnt receve the mail. postfix and everything is started.

things from mail.log that seems strange:
Mar 19 08:55:08 localhost postfix/master[880]: fatal: /etc/postfix/master.cf: li

ne 127: bad transport type: smtp_data_done_timeout=1200

Mar 19 08:54:19 localhost dccifd[660]: 1.2.74 listening to /var/lib/dcc/dccifd <-- shuld it be 1.2.74 ?

Mar 19 14:14:14 localhost dccproc[934]: socket(UDP): Address family not supported by protocol

Last edited by Torsson; 19th March 2006 at 15:12.
Reply With Quote
  #8  
Old 20th March 2006, 12:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

Please post the output of
Code:
netstat -tap
and the content of /etc/postfix/master.cf.
__________________
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 20th March 2006, 16:21
Torsson Torsson is offline
Member
 
Join Date: Mar 2006
Posts: 62
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Netstat:
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imaps                 *:*                     LISTEN     629/couriertcpd
tcp        0      0 *:pop3s                 *:*                     LISTEN     652/couriertcpd
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN     548/amavisd (master
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN     733/mysqld
tcp        0      0 *:pop3                  *:*                     LISTEN     638/couriertcpd
tcp        0      0 *:imap2                 *:*                     LISTEN     615/couriertcpd
tcp        0      0 *:sunrpc                *:*                     LISTEN     379/portmap
tcp        0      0 *:www                   *:*                     LISTEN     916/apache2
tcp        0      0 *:auth                  *:*                     LISTEN     668/inetd
tcp        0      0 *:659                   *:*                     LISTEN     901/rpc.statd
tcp        0      0 *:ssh                   *:*                     LISTEN     896/sshd
tcp        0      0 192.168.0.2:ssh         192.168.0.110:4219      ESTABLISHED940/0
tcp        0      0 localhost.localdom:pop3 localhost.localdom:1038 TIME_WAIT  -

Master.cf
Code:
smtp      inet  n       -       -       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet  n       -       n       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
Reply With Quote
  #10  
Old 20th March 2006, 16:44
Torsson Torsson is offline
Member
 
Join Date: Mar 2006
Posts: 62
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

I can have found the problem, my domain holder havent changed the MX record on a proper way. but i still need to solve the telnet localhost 25 problem
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
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota... killfrog HOWTO-Related Questions 3 25th September 2009 21:45
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 20:11
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs Rocky Installation/Configuration 24 9th February 2006 11:08


All times are GMT +2. The time now is 09:43.


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