LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2010, 11:48 AM   #1
garion
Member
 
Registered: Nov 2003
Posts: 35

Rep: Reputation: 15
Cyrus delivering mail to a single mailbox


I am running cyrus 2.1 on OpenSusu 11.0. A couple of days ago I tried to install ispCP and it ending up trash my email. I restored everything in /etc/postfix where ispCP had changed a load of files, but unfortunately that did not correct all of my problems.

I have several domains with multiple users, most of which deliver to a few local address. For example,

joe@domain1 delivers to joe
admin@domain1 delivers to joe

fred@domain2 delivers to fred
admin@domain2 delivers to fred

larry@domain2 delivers to larry
admin@domain2 delivers to larry

What is happening now is that all of the email intended for local user is delivered to a single user (e.g. larry). Email that is redirected to an external user (e.g. mike@linuxquestions.org) works fine. Email to non-existent users fails, as expect.

I tried deleting the mail box for one of the users and re-creating it, but the problem continues.

I have looked through many HOWTOs, web pages and man-pages, but I cannot find any configuration options that addresses this kind of thing. I am very new to cyrus but pretty strong with Linux. I would appreciate any help people can provide.
 
Old 07-16-2010, 04:43 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

It's not cyrus, but postfix responsible of delivering mail. Take a look at this howto (it's written for debian but it applies in any distro), to see how to configure virtual users in postfix

Regards
 
1 members found this post helpful.
Old 07-17-2010, 12:51 AM   #3
garion
Member
 
Registered: Nov 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Not cyrus? I just learned something. That is always a good thing. I will look though that howto right now. Thanks!
 
Old 07-17-2010, 04:07 AM   #4
garion
Member
 
Registered: Nov 2003
Posts: 35

Original Poster
Rep: Reputation: 15
I went through the howto step-by-step, but I could not find anything I was doing wrong. Conceptually everything the same, just the file names were different. I was going to reply and say the files were the exact same as before the problem. However, that is not entirely true, I changed the main.cf to this:

mydomain = domain1.com
myhostname = mail.domain1.com
myorigin = domain1.com

because domain1.com is the real domain of the server (per 'domainname'). In /var/log/mail,info I was seeing this:


Jul 17 09:33:18 sonne postfix/pipe[5982]: F0DA7282C0D5: to=<garion@domain1.com>, orig_to=<donnovan@domain2.com>, relay=cyrus, delay=0.69, delays=0.55/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via cyrus service)


When I restored the files to the *real* originals (e.g mydomain = domain3.com), I got this:

Jul 17 10:44:27 sonne postfix/pipe[10142]: B327D282C0BF: to=<donnovan@domain3.com>, orig_to=<donnovan@domain2.com>, relay=cyrus, delay=0.36, delays=0.24/0.01/0/0.1, dsn=2.0.0, status=sent (delivered via cyrus service)


What I don't understand is the mechanism that sent all email to garion@domain1.com. Both garion and donnovan are real local users, so it might make sense if the system tried to redirect donnovan@domain2.com to donnovan@domain1.com, but it doesn't make sense that it is redirected to a completely different user (garion@domain1.com).

Any ideas?
 
Old 07-17-2010, 08:45 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Without the config files, I can only think that garion@domain1.com is a catch-all address for domain1.com.
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix not delivering to dovecot for local users (delivering to default user mail) Awalsh Linux - Server 0 07-27-2009 11:13 AM
Web Server delivering mail to itself instead of mailbox.... PaisleysDaddy Linux - Server 1 09-08-2008 05:32 PM
Postfix/Cyrus Not delivering mail nitsujw Linux - Software 1 07-17-2005 06:16 PM
qmail delivering mail but not to mailbox ServerStorm Linux - Software 9 01-13-2005 10:39 AM
Postfix not delivering mail to mailbox DeVryGuy Linux - Software 13 09-22-2003 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration