Hello Michael,

May be I don't really get the idea behind virtual domains.

I understood it like this:
I should have at least one real MX record in my DNS. 
Now I can just make virtual domains by pointing (IN CNAME) to the real server 
which has MX record.
Like I did:

IN      MX      10 mail2.edu.haifa.ac.il.
mail2           IN A            132.74.41.18
ns              IN CNAME        mail2.edu.haifa.ac.il. 

Now I should create these domains (real and virtual ones) with web-cyradm.
ns.edu.haifa.ac.il was already created (but don't have it's own MX, just CNAME 
to mail2.edu.haifa.ac.il )
I've added mail2.edu.haifa.ac.il domain, and local delivery (sending from/to 
these domains to themselves) is working now.

In /var/log/mail:
----------------------
Jul 25 15:10:12 ns postfix/cleanup[9288]: 804DC10BD2: message-id=<[EMAIL 
PROTECTED]>
Jul 25 15:10:12 ns postfix/qmgr[9019]: 804DC10BD2: from=<[EMAIL PROTECTED]>, 
size=1373, nrcpt=1 (queue active)
Jul 25 15:10:12 ns postfix/smtpd[9281]: disconnect from 
leon.edu.haifa.ac.il[132.74.41.34]
Jul 25 15:10:12 ns postfix/pipe[9294]: 804DC10BD2: to=<[EMAIL PROTECTED]>, 
orig_to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0, status=sent 
(mail2.edu.haifa.ac.il)
Jul 25 15:10:12 ns postfix/qmgr[9019]: 804DC10BD2: removed
----------------------


I should make these changes to mydestination (as I understand from Lucs' howto) 
to make things work.
myhostname = mail2.edu.haifa.ac.il
mydomain = edu.haifa.ac.il
mydestination = $myhostname, localhost.$mydomain, mail2.edu.haifa.ac.il, 
ns.edu.haifa.ac.il, mysql:/etc/postfix/mysql-mydestination.cf

[EMAIL PROTECTED] belong to my server.
[EMAIL PROTECTED] Don't belong to my server, it's on another mailserver.

Trying to send e-mail from [EMAIL PROTECTED] to [EMAIL PROTECTED] I got this 
error:
--------------------------------------------------
Jul 25 15:16:14 ns postfix/smtpd[9333]: connect from 
leon.edu.haifa.ac.il[212.74.41.34]
Jul 25 15:16:14 ns postfix/smtpd[9333]: NOQUEUE: reject: RCPT from 
leon.edu.haifa.ac.il[132.74.41.34]: 554 <[EMAIL PROTECTED]>: Relay access 
denied; from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> proto=SMTP 
helo=<mainhutz>
Jul 25 15:16:14 ns postfix/smtpd[9333]: disconnect from 
leon.edu.haifa.ac.il[212.74.41.34]


A. Please explain to me the idea behind creation of virt. domains and the steps 
to create them right (May be tell me there my steps are wrong?)
B. This server is my test server so I didn't make a change in the production 
environment.
C. Any ideas on how to solve this problem?


Thank you,
Leon




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muenz, Michael
Sent: Monday, July 25, 2005 3:08 PM
To: [email protected]
Subject: RE: [Web-cyradm] Changed servername problems

> I've made some changes to DNS and servername, and now I'm experiencing 
> some problems:
> 
> I can connect and read mail from the email accounts on 
> mail2.edu.haifa.ac.il, but I can not send any mail.
> 
> I've renamed hostname from ns to mail2, made 
> ns              IN CNAME        mail2.edu.haifa.ac.il.
> in DNS hoping that old addresses (like
> [EMAIL PROTECTED]) will work.


Don't change local domains while in production use!
If you use ns.XXX as a maildomain you have to set a MX
for it
 

> When trying to send e-mail to any host from that server I get 
> in /var/log/mail:
> --------------------------------------------------------------
> -----------------------------------------------------
> Jul 25 12:09:58 ns postfix/smtpd[8380]: NOQUEUE: reject: RCPT 
> from leon.edu.haifa.ac.il[212.74.41.34]: 554 
> <[EMAIL PROTECTED]>: Relay access denied; 
> from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> 
> proto=SMTP helo=<mainhutz>
> Jul 25 12:09:58 ns last message repeated 2 times
> Jul 25 12:09:58 ns postfix/smtpd[8380]: disconnect from 
> leon.edu.haifa.ac.il[212.74.41.34]


from [EMAIL PROTECTED] to [EMAIL PROTECTED] .. both domains don't belong
to your server? You have to use smtp-auth to send mails,
or tweak some smtpd restrictions.


> When sending to old accounts (like 
> [EMAIL PROTECTED]) any mail I get this message:
> --------------------------------------------------------------
> --------------------------------------------------------------
> This is the Postfix program at host mail2.edu.haifa.ac.il.
> I'm sorry to have to inform you that your message could not 
> be be delivered to one or more recipients. It's attached below.
> For further assistance, please send mail to <postmaster>
> If you do so, please include this problem report. You can 
> delete your own text from the attached returned message.
> The Postfix program
> <[EMAIL PROTECTED]> (expanded from 
> <[EMAIL PROTECTED]>): mail
> for mail2.edu.haifa.ac.il loops back to myself


In your DB, mail2.XXX is not a local domain. You should add
mail2.XXX to web-cyradm.


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to