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 24th February 2007, 22:51
Radukn Radukn is offline
Junior Member
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains With Postfix, Courier And MySQL

Sending email to other mailserver works ok!
Send mail to my mailserver doesn't work (i think because i can't verify my mail)
/var/log/mail.log :
courierpop3login: scancur opendir("cur"): No such file or directory

Regarding the sending of the email i get this piece of log:


Feb 24 21:42:39 mail postfix/smtpd[1893]: connect from unknown[193.93.141.178]
Feb 24 21:42:39 mail postfix/trivial-rewrite[1896]: warning: do not list domain indebara.ro in BOTH mydestination and virtual_mailbox_domains
Feb 24 21:42:39 mail postfix/smtpd[1893]: 4397923F5C: client=unknown[193.93.141.178], sasl_method=LOGIN, sasl_username=radukn@indebara.ro
Feb 24 21:42:39 mail postfix/cleanup[1901]: 4397923F5C: message-id=<001d01c7585c$a6913c40$b28d5dc1@radukn>
Feb 24 21:42:39 mail postfix/qmgr[1892]: 4397923F5C: from=<radukn@indebara.ro>, size=648, nrcpt=1 (queue active)
Feb 24 21:42:39 mail postfix/smtpd[1893]: disconnect from unknown[193.93.141.178]
Feb 24 21:42:42 mail dccproc[1906]: socket(UDP): Address family not supported by protocol
Feb 24 21:42:42 mail postfix/smtpd[1909]: connect from localhost[127.0.0.1]
Feb 24 21:42:42 mail postfix/trivial-rewrite[1896]: warning: do not list domain indebara.ro in BOTH mydestination and virtual_mailbox_domains
Feb 24 21:42:42 mail postfix/smtpd[1909]: 71D7323F5F: client=localhost[127.0.0.1]
Feb 24 21:42:42 mail postfix/cleanup[1901]: 71D7323F5F: message-id=<001d01c7585c$a6913c40$b28d5dc1@radukn>
Feb 24 21:42:42 mail postfix/qmgr[1892]: 71D7323F5F: from=<radukn@indebara.ro>, size=1085, nrcpt=1 (queue active)
Feb 24 21:42:42 mail postfix/trivial-rewrite[1896]: warning: do not list domain indebara.ro in BOTH mydestination and virtual_mailbox_domains
Feb 24 21:42:42 mail amavis[1330]: (01330-03) Passed, <radukn@indebara.ro> -> <radukn@indebara.ro>, Message-ID: <001d01c7585c$a6913c40$b28d5dc1@radukn>, Hits: 0.687
Feb 24 21:42:42 mail postfix/smtp[1902]: 4397923F5C: to=<radukn@indebara.ro>, relay=127.0.0.1[127.0.0.1], delay=3, status=sent (250 2.6.0 Ok, id=01330-03, from MTA: 250 Ok: queued as 71D7323F5F)
Feb 24 21:42:42 mail postfix/qmgr[1892]: 4397923F5C: removed
Feb 24 21:42:42 mail postfix/smtpd[1909]: disconnect from localhost[127.0.0.1]
Feb 24 21:42:42 mail postfix/smtp[1911]: 71D7323F5F: to=<radukn@indebara.ro>, relay=none, delay=0, status=bounced (mail for mail.indebara.ro loops back to myself)
Feb 24 21:42:42 mail postfix/cleanup[1901]: 8172723F60: message-id=<20070224214242.8172723F60@localhost>
Feb 24 21:42:42 mail postfix/qmgr[1892]: 8172723F60: from=<>, size=2702, nrcpt=1 (queue active)
Feb 24 21:42:42 mail postfix/qmgr[1892]: 71D7323F5F: removed
Feb 24 21:42:42 mail postfix/smtp[1911]: 8172723F60: to=<radukn@indebara.ro>, relay=none, delay=0, status=bounced (mail for mail.indebara.ro loops back to myself)
Feb 24 21:42:42 mail postfix/qmgr[1892]: 8172723F60: removed



Any ideeas??
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2007, 18:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by Radukn
Feb 24 21:42:39 mail postfix/trivial-rewrite[1896]: warning: do not list domain indebara.ro in BOTH mydestination and virtual_mailbox_domains
Take a look here: http://www.howtoforge.com/forums/sho...7&postcount=12

Quote:
Originally Posted by Radukn
Feb 24 21:42:42 mail postfix/smtp[1911]: 8172723F60: to=<radukn@indebara.ro>, relay=none, delay=0, status=bounced (mail for mail.indebara.ro loops back to myself)
Please add mail.indebara.ro to the mydestination line in /etc/postfix/main.cf and restart Postfix.
__________________
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 27th February 2007, 15:34
Radukn Radukn is offline
Junior Member
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Still not working..

I added mail.indeabra.ro in mydestination reloaded postfix but now i got this when trying to send an email to myself:
Feb 27 11:03:46 mail postfix/smtpd[23187]: connect from unknown[193.93.141.178]
Feb 27 11:03:46 mail postfix/smtpd[23187]: 5F1DB23F63: client=unknown[193.93.141.178], sasl_method=LOGIN, sasl_username=radukn@indebara.ro
Feb 27 11:03:46 mail postfix/cleanup[23195]: 5F1DB23F63: message-id=<000901c75a5e$ec722e00$b28d5dc1@radukn>
Feb 27 11:03:46 mail postfix/qmgr[23154]: 5F1DB23F63: from=<radukn@indebara.ro>, size=659, nrcpt=1 (queue active)
Feb 27 11:03:46 mail postfix/smtpd[23187]: disconnect from unknown[193.93.141.178]
Feb 27 11:03:46 mail amavis[1332]: (01332-03) lookup_sql: 2006, MySQL server has gone away
Feb 27 11:03:46 mail amavis[1332]: (01332-03) NOTICE: Disconnected from SQL server
Feb 27 11:03:46 mail amavis[1332]: (01332-03) TROUBLE in check_mail: creating_partsdir FAILED: DBD::mysql::st execute failed: MySQL server has g one away at (eval 38) line 238, <GEN17> line 175.
Feb 27 11:03:46 mail amavis[1332]: (01332-03) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20070224T205735-01332
Feb 27 11:03:46 mail postfix/smtp[23196]: 5F1DB23F63: to=<radukn@indebara.ro>, relay=127.0.0.1[127.0.0.1], delay=0, status=deferred (host 127.0. 0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=01332-03, creating_partsdir FAILED: DBD::mysql::st execute failed: MySQL server has gone away at (eval 38) line 238, <GEN17> line 175. (in reply to end of DATA command))
Reply With Quote
  #4  
Old 28th February 2007, 18:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Now there seems to be a problem with the MySQL server. What's the output of
Code:
netstat -tap
?
Any MySQL errors in the logs?
__________________
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 April 2007, 19:59
vlade vlade is offline
Junior Member
 
Join Date: Jan 2007
Posts: 16
Thanks: 3
Thanked 1 Time in 1 Post
Default Problem connecting to mail server

This time I have problem connecting to mail server. I followed the tutorial for ubuntu 6.10. User is refused to connect. I added user using phpmyadmin. I use MS Outlook Express to test connection. But can not login - password problem.

any idea ?

Do I have to make some aditional editing the conf files if i use registered domain on my local network or do i just replace @example.tld to mydomain.com ?

tnx
Reply With Quote
  #6  
Old 9th April 2007, 17:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by vlade
This time I have problem connecting to mail server. I followed the tutorial for ubuntu 6.10. User is refused to connect. I added user using phpmyadmin. I use MS Outlook Express to test connection. But can not login - password problem.
What's the exact error message? Any errors in your 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 13th April 2007, 17:04
dthacker dthacker is offline
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default mail_admin_password in cleartext

Thank you for a great How To. At the point I created my mail_admin user in the MySQL database I gave it a password of my own instead of "mail_admin_password".
Should I change every occurrence of "mail_admin_password" in the /etc/postfix/mysql-virtual_* fileset to match? Is there a way to avoid having that password in cleartext? Did I miss something along the way?

Dave
Reply With Quote
  #8  
Old 13th April 2007, 17:36
vlade vlade is offline
Junior Member
 
Join Date: Jan 2007
Posts: 16
Thanks: 3
Thanked 1 Time in 1 Post
Smile

Quote:
Should I change every occurrence of "mail_admin_password" in the /etc/postfix/mysql-virtual_* fileset to match? Is there a way to avoid having that password in cleartext? Did I miss something along the way?
Yes you must change password to match.

---------
Vlade
Reply With Quote
The Following User Says Thank You to vlade For This Useful Post:
dthacker (13th April 2007)
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 Secondary MX acoghlan HOWTO-Related Questions 1 8th March 2008 05:02
Virtual Users And Domains With Postfix, Courier And MySQL [+ procmail ?] immobilia HOWTO-Related Questions 5 29th June 2006 23:20
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


All times are GMT +2. The time now is 19:40.


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