Koozali.org: home of the SME Server

hello I need help ... with e-mail server

cristi3k

hello I need help ... with e-mail server
« on: August 24, 2005, 03:51:44 PM »
i have 2 registered domains.
I have setup the aliases.
Here is the problem I have, if I send an email at user@domain2.com it give me an error, the same error not apeear if I send the email at user@domain1.com.

here is the error:

Hi. This is the qmail-send program at yahoo.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<user@domanin2.com>:
XX.XX.XX.118 does not like recipient.
Remote host said: 550 Relaying not allowed
Giving up on XX.XX.XX.118.

--- Below this line is a copy of the message.

I am confused with the error, I have tryed every thing.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: hello I need help ... with e-mail server
« Reply #1 on: August 25, 2005, 10:51:45 AM »
cristi3k

> I have setup the aliases.

What did you do to "set these up", did you follow the howto ?

Where (physically) are you sending the messages from/to ?
...

cristi3k

Re: hello I need help ... with e-mail server
« Reply #2 on: August 25, 2005, 04:32:42 PM »
Quote from: "RayMitchell"
cristi3k

> I have setup the aliases.

What did you do to "set these up", did you follow the howto ?

Where (physically) are you sending the messages from/to ?


I follow this how to:

Quote
Virtual domain email aliases HOWTO for sme server

Release applicable: sme server v6.0, 6.0.1

Author: Ray Mitchell mitchellcpa_AT_yahoo.com.au

Original author: Darrell May

Contributor: Gordon Rowell

Revision date: June 3, 2004 v1

Problem:
You need to set-up virtual e-mail domains that support for example info@domain1.com and forward this e-mail to the appropriate recipient. For our example will send info@domain1.com to the user fred.

Step 1- Virtual Domain Set-up:

Use the e-smith-manager, Configuration/Domains panel to set-up the virtual domain, domain1.com. Instructions are found in the user manual.

Step 2 - Create your user:

Use the e-smith-manager, User accounts panel to set-up the user fred. Instructions are found in the user manual.

Step 3 - Create a templates-custom fragment:
   mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains
   pico /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases
In this 90aliases file enter all your virtual aliases in the form alias:username. In the example below info@domain1.com is to go to user fred.

   info@domain1.com:fred
If you want all domain mail going into one account, enter your virtual alias in the form domain:username. In the example below domain1.com:fred sends all @domain1.com mail to user fred.

   domain1.com:fred
If you want all domain mail going into one account, except for defined users, enter your virtual aliases in the form shown below. In the example below domain1.com:fred sends all @domain1.com mail to user fred except for jim and bob who get their mail directly..

   domain1.com:fred
   jim@domain1.com:jim
   bob@domain1.com:bob
Step 4 - Save the file above and execute a email-update:

   /sbin/e-smith/signal-event email-update
This recreates the file var/qmail/control/virtualdomains with the above alias entries preceeding the domain entries and restarts qmail.

Step 5 - Test the above virtual aliases:

Send an e-mail to info@domain1.com to test that it is received by the qmail server without error and reach the intended recipient (fred) mailbox.




Should readers of this HOWTO wish to configure email aliases on earlier versions of sme server, they need to do the following steps as well (in the correct sequence) or alternatively refer to earlier versions of this HOWTO by Darrell May

Step 2a - Create users .qmail-default: (not required in v6.0 sme server)

In the users home directory, /home/e-smith/files/users/fred create a file named .qmail-default containing only one line, the users name, fred.

   pico /home/e-smith/files/users/fred/.qmail-default
   - add the one word fred
   - save the file
Step 2b - Set the ownership and rights on .qmail-default to the user only: (not required in v6.0 sme server)

   chown fred:fred /home/e-smith/files/users/fred/.qmail-default
chmod 644 /home/e-smith/files/users/fred/.qmail-default


And my problem is this: localy when i send mail to any mail on second domain (not primary) it works. From out side (from yahoo or any other mail server) it gives me an error: "550 Relaying not allowed".
plus when I try to send an email from the second domain the identity is user@domain1.com and not user@domain2.com.

cristi3k

I wonder one thing ...
« Reply #3 on: August 25, 2005, 04:35:07 PM »
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains - is this corect or it shoud be :
mkdir -p /etc/e-smith/templates-user-custom/var/qmail/control/virtualdomains

Offline raem

  • *
  • 3,972
  • +4/-0
Re: hello I need help ... with e-mail server
« Reply #4 on: August 26, 2005, 04:44:10 AM »
cristi3k

>...localy when i send mail to any mail on second
> domain (not primary) it works.

So your aliases config is OK then.
Are the addresses in the second domain valid user accounts on the first domain, they need to be.


> From out side (from yahoo or any other mail
> server) it gives me an error: "550 Relaying not allowed".

So what are you doing here more specifically.
The system believes you are trying to relay mail through the server which is NOT allowed by default.


> when I try to send an email from the second domain > the identity is user@domain1.com and not
> user@domain2.com

I assume you mean using webamil then you need to change the return address in webmail setup.


> mkdir -p /etc/e-smith/templates-
> custom/var/qmail/control/virtualdomains -
> is this corect


Yes
...

cristi3k

Re: hello I need help ... with e-mail server
« Reply #5 on: August 26, 2005, 08:00:58 AM »
Quote from: "RayMitchell"

>...localy when i send mail to any mail on second
> domain (not primary) it works.
So your aliases config is OK then.
Are the addresses in the second domain valid user accounts on the first domain, they need to be.

YES they are valid accounts for first domain to.
Quote from: "RayMitchell"

> From out side (from yahoo or any other mail
> server) it gives me an error: "550 Relaying not allowed".

So what are you doing here more specifically.
The system believes you are trying to relay mail through the server which is NOT allowed by default.

It is safe to turn on the relay!?

Quote from: "RayMitchell"

> when I try to send an email from the second domain > the identity is user@domain1.com and not
> user@domain2.com
I assume you mean using webamil then you need to change the return address in webmail setup.

Yes using the webmail. Webmail setup = !?!?!? - with putty or with browser I can do that!?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: hello I need help ... with e-mail server
« Reply #6 on: August 26, 2005, 08:35:07 AM »
cristi3k

> It is safe to turn on the relay!?

No, anybody can use your server then to send mail and you will be blacklisted very quickly as you are very likely to be targetted by spammers as an open relay server etc.


> Yes using the webmail. Webmail setup = !?!?!? - with putty or with browser I can do that!?

I don't know what you are talking about.

Configuration is done from within the webmail program
https//www.yourdomain/webmail

Yes need to enable webmail in server manager first though, for external secure access using https
That may fix your problem.

Have you read the manual, perhaps you are overlooking some basic email concepts & usage.
You should be able to send email to any valid address on your server from any email program anywhere is the world. That is not relaying, that is normal usage.

You still have not described in detail how you are trying to connect externally to your server. That will give us clues as to what you are doing wrong.

You perhaps need to install and configure it for secure IMAP or POP. There is a contribution available to do that.
...

cristi3k

I will try to explain more clear - escuse my poor english
« Reply #7 on: August 26, 2005, 09:39:12 AM »
I have to domains (primary = domain1.com and secondary domain2.com) - I want like user to send and recive mail as user@domain2.com.

First step:
I followed this how to:

Quote
Step 1- Virtual Domain Set-up:

Use the e-smith-manager, Configuration/Domains panel to set-up the virtual domain, domain1.com. Instructions are found in the user manual.

Step 2 - Create your user:

Use the e-smith-manager, User accounts panel to set-up the user fred. Instructions are found in the user manual.

Step 3 - Create a templates-custom fragment:
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains
pico /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases
In this 90aliases file enter all your virtual aliases in the form alias:username. In the example below info@domain1.com is to go to user fred.

info@domain1.com:fred
If you want all domain mail going into one account, enter your virtual alias in the form domain:username. In the example below domain1.com:fred sends all @domain1.com mail to user fred.

domain1.com:fred
If you want all domain mail going into one account, except for defined users, enter your virtual aliases in the form shown below. In the example below domain1.com:fred sends all @domain1.com mail to user fred except for jim and bob who get their mail directly..

domain1.com:fred
jim@domain1.com:jim
bob@domain1.com:bob
Step 4 - Save the file above and execute a email-update:

/sbin/e-smith/signal-event email-update
This recreates the file var/qmail/control/virtualdomains with the above alias entries preceeding the domain entries and restarts qmail.

Step 5 - Test the above virtual aliases:

Send an e-mail to info@domain1.com to test that it is received by the qmail server without error and reach the intended recipient (fred) mailbox.


Step 2

I have installed the E-mail Blocking contrib from dungog.net for hepling me determin whitch user is for domain1 and whitch user is for domain2.

Results:

1. From local host (user@domain1.com or user@domain2.com) to user1@domain2.com is working.
2. From user@yahoo.com or user@hotmail.com I recieve that error (550 relaying not allowed)
3. When I try to send an email with www.domain2.com/webmail identity field is user@domain1.com and not user@domain2.com

PS: I have https enabled and IMAP or POP not enabled (for security reasons).[/b] (I do not try to connect with extern programs to my mail server).

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I will try to explain more clear - escuse my poor englis
« Reply #8 on: August 26, 2005, 01:38:29 PM »
cristi3k

> From user@yahoo.com or user@hotmail.com I recieve > that error (550 relaying not allowed)

I still do not understand how you are sending these  messages, please explain more. Are you sending from a yahoo acount, are you sending from a hotmail account ?
How are you doing this, in detail please.


> www.domain2.com/webmail identity field is
> user@domain1.com and not user@domain2.com

After logging in to webmail select Options/Personal Information/Edit your identities and enter Your Reply To address eg as user@domain2.com

You can also create additional identities
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I will try to explain more clear - escuse my poor englis
« Reply #9 on: August 26, 2005, 01:44:10 PM »
cristi3k

> I have installed the E-mail Blocking contrib
> From user@yahoo.com or user@hotmail.com I recieve that error (550 relaying not allowed)

Did you create any mailrules that are blocking incoming mail to user@domain2.com. Check carefully !
You may have blocked mail from yahoo & hotmail.
...

cristi3k

Re: I will try to explain more clear - escuse my poor englis
« Reply #10 on: August 26, 2005, 02:21:59 PM »
Quote from: "RayMitchell"
cristi3k

> I have installed the E-mail Blocking contrib
> From user@yahoo.com or user@hotmail.com I recieve that error (550 relaying not allowed)

Did you create any mailrules that are blocking incoming mail to user@domain2.com. Check carefully !
You may have blocked mail from yahoo & hotmail.


I use it only to spermit and not to deny something.

cristi3k

Re: I will try to explain more clear - escuse my poor englis
« Reply #11 on: August 26, 2005, 02:26:34 PM »
Quote from: "RayMitchell"
cristi3k

> From user@yahoo.com or user@hotmail.com I recieve > that error (550 relaying not allowed)

I still do not understand how you are sending these  messages, please explain more. Are you sending from a yahoo acount, are you sending from a hotmail account ?
How are you doing this, in detail please.


Send an email to test1@tvgalati.ro and to test1@altcevatechnics.ro - to understend better

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I will try to explain more clear - escuse my poor englis
« Reply #12 on: August 26, 2005, 02:47:38 PM »
cristi3k

> to test1@tvgalati.ro
sends OK

> to test1@altcevatechnics.ro

I get

Hi. This is the qmail-send program at yahoo.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<test1@altcevatechnics.ro>:
xx.xx.xx.118 does not like recipient.
Remote host said: 550 Relaying not allowed
Giving up on xx.xx.xx.118.
...

cristi3k

I see it ...
« Reply #13 on: August 26, 2005, 03:06:15 PM »
Same error from any mail adresses.
Any Ideea on why this happens!?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I see it ...
« Reply #14 on: August 26, 2005, 03:23:31 PM »
cristi3k

Well it's most likely in your server somewhere.
ie
Remote host said: 550 Relaying not allowed

Are you running ASSP anti-spam ?
...

cristi3k

yes
« Reply #15 on: August 26, 2005, 03:29:50 PM »
I use that rpm.
That is the problem!?
What should i do?! Uniinstall ASSP!?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I see it ...
« Reply #16 on: August 26, 2005, 03:32:46 PM »
cristi3k

> Well it's most likely in your server somewhere.
> ie Remote host said: 550 Relaying not allowed
> Are you running ASSP anti-spam ?

From the ASSP howto

You will want to change
Relaying
Local Domains (your domains)
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: I see it ...
« Reply #17 on: August 26, 2005, 03:55:44 PM »
cristi3k

> You will want to change
> Relaying
> Local Domains (your domains)

A good piece of detective work eh.
Please let me know if that fixes your problem.
...

cristi3k

yeeeeaaaaah
« Reply #18 on: August 26, 2005, 04:04:26 PM »
that was the problem.
When I have installed the assp i didnt have the domain. Now I have setup the assp to accept mail for domain2.com.

PS: It is not need it to put the aliases in qmail, I used the pseudonyms and it works.

Offline ltc6netspec

  • ***
  • 72
  • +0/-0
    • http://www.lth6.k12.il.us
SME 7
« Reply #19 on: August 04, 2006, 05:16:04 PM »
<xxxxxx@verizon.net>:
Connected to 206.46.232.11 but sender was rejected.
Remote host said: 550 You are not allowed to send mail:sv15pub.verizon.net


I am using the builtin spamassissin and getting the this message.  I've checked with verizon and they are not blocking servers at this time.  I had no problems under SME 6.01

Any suggestions.

Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: SME 7
« Reply #20 on: August 05, 2006, 01:07:15 AM »
ltc6netspec

Please post your query to the specific sme 7 forum and please start new threads, don't tack your question on the end of someone else's thread.
...

Offline ltc6netspec

  • ***
  • 72
  • +0/-0
    • http://www.lth6.k12.il.us
hello I need help ... with e-mail server
« Reply #21 on: August 05, 2006, 01:14:28 AM »
Thank you,

I had realized my mistake and did create a new thread.  You see it with the 550 error. :-D