owner@domain

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,516
Location
A Coruña, Spain
Hi guys,

im still having the problem of owner@domain but ok i know where is the problem.

I use to call the server xxx.mydomain.tld and use to create the domain xxx.mysomain.tld for mrtg/phpsysinfo/other stuff so thats why those accounts doesnt work.

So, i would like to automatic forward (on user creation) the mail for owner@domain to the email i put in the form when i create a user.

Anyone should please help me find out a way (for sure should be a script in post_user_create.sh or something like that) to solve this?

Thanks in advance
 
I believe you can (on user creation) simply create a file at /home/USERNAME/.forward with contents of one line, that line being the address you want the email to be sent to.

Jeff
 
And will forward only the email for owner@domain?

Thats nice, thanks a lot.

Do you know what is the variable for the email on user creation?

Regards
 
And will forward only the email for owner@domain?
For what I call USERNAME. However, always check. It's old functionality left over from the days when each user on a text-based system could log in and forward his/her email anywhere.
Do you know what is the variable for the email on user creation?
No, I don't; hopefully someone else will.

Jeff
 
ive made a FR for this.

I would ask to you that are expert about this, why the creation of the domain with same server name cause this issue? I mean, if i wanna add the domain but without email (i think is the ability to create email@servername the issue) should it work? If yes, where i can edit for let mail server dont notice that domain?

Thanks

Regards
 
It's a POSIX default since the first POSIX compliant operating systems were created. All users can get email. Originally there were no such things as virtual email accounts, only user accounts.

Linux and BSD are both POSIX compliant operating systems.

You should NOT do anything except forwards for them; lots of software (including cronjobs, for example) will simply break, because they expect to be able to send email to users.

Jeff
 
Sorry but i didnt get what you meant.

When DA is just installed the mail user@domain automatically work, when the domain servername is created this stop to work, so, i suppose, there is some file that get created/edited that cause the break of the default working configuration for email user@domain.

Also maybe im on wrong way at asking, prolly poor english, but for example i paste one of the errors i got:

This is one of the frozen email i got everyday (in mail queue about 12 page each day):

EMAIL HEADER
Code:
1QU1ET-0002gu-5B-H
mail 8 12
<>
1307472149 0
-ident mail
-received_protocol local
-body_linecount 39
-max_received_linelength 127
-allow_unqualified_recipient
-allow_unqualified_sender
-frozen 1307472149
-localerror
XX
1
[email protected]

150P Received: from mail by Orange01.CrazyNetwork.it with local (Exim 4.76)
	id 1QU1ET-0002gu-5B
	for [email protected]; Tue, 07 Jun 2011 20:42:29 +0200
051  X-Failed-Recipients: [email protected]
029  Auto-Submitted: auto-replied
068F From: Mail Delivery System <[email protected]>
024T To: [email protected]
059  Subject: Mail delivery failed: returning message to sender
057I Message-Id: <[email protected]>
038  Date: Tue, 07 Jun 2011 20:42:29 +0200

EMAIL BODY
Code:
1QU1ET-0002gu-5B-D
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    SMTP error from remote mail server after RCPT TO:<[email protected]>:
    host mx3.hotmail.com [65.54.188.94]: 550 Requested action not taken:
    mailbox unavailable

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from nonpresent by Orange01.CrazyNetwork.it with local (Exim 4.76)
	(envelope-from <[email protected]>)
	id 1QU1ES-0002gg-0c
	for [email protected]; Tue, 07 Jun 2011 20:42:28 +0200
To: [email protected]
Subject: Articolo Interessante su NO TAV
X-PHP-Script: www.notav.eu/modules.php for 109.112.7.23
From: "alfrandy" <[email protected]>
X-Mailer: PHP/5.2.17
Message-Id: <[email protected]>
Sender:  <[email protected]>
Date: Tue, 07 Jun 2011 20:42:28 +0200

Ciao marisa:

Il Tuo Amico alfrandy ha pensato che ti potesse interessare il seguente articolo trovato su NomeSito.it e ha voluto inviartelo.


Lettera alle istituzioni italiane
(Data: 2011-06-07 15:01:27)
Argomento: Dall'Europa

URL: http://www.notav.eu/modules.php?name=News&file=article&sid=5253

Puoi leggere Articoli interssanti su NO TAV
http://www.notav.eu

EMAIL LOG
Code:
2011-06-07 20:42:29 Received from <> R=1QU1ES-0002gg-0c U=mail P=local S=1913 T="Mail delivery failed: returning message to sender"
2011-06-07 20:42:29 [email protected] <[email protected]> F=<> R=virtual_aliases: 
2011-06-07 20:42:29 [email protected] <[email protected]> F=<> R=virtual_aliases: 
*** Frozen (delivery error message)

The email [email protected] is the da login user @ user's own domain and the email get frozen.

Ok the email is a notice for email sent (prolly by user own forum) that say that recipient mailbox is not avaible.

But, my customer will never get this notice cause get frozen cause the email try to get send to [email protected] <[email protected]> (orange01.crazynetwork.it is ofc the server name).

I would just understand what modification the creation of the domain orange01.crazynetwork.it can create to the email system maybe i need to create an alias into directadmin for each server user on domain orange01.crazynetwork.it but... there should be another way i suppose.

Sorry for the long post, but i know you are the most indicated person to help me figure out this or at least understand why that happend :)

Best regards
 
Ive tryed to craete a .forward for a customer in his root /home/username/.forward with one line and that line is just the email address where to forward but is not working at all..
 
You might need to enable full loging in exim.conf and read logs, there might something mis-configured. I've never ever had a problem with .forward.

p.s. do you have a new line in the file after an email?
 
No, no new line.

Code:
2011-06-10 10:45:38 1QUxLW-0007ZR-CW <= [email protected] U=mhorpheox P=local S=986 [email protected] T="Nuovo Utente in Consolelandia" from <[email protected]> for [email protected]
2011-06-10 10:45:39 1QUxLW-0007ZR-CW => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=1016 H=mx3.hotmail.com [65.55.92.184] C="250  <[email protected]> Queued mail for delivery"
2011-06-10 11:00:24 1QUxZo-0000qr-1q <= [email protected] U=mhorpheox P=local S=1001 [email protected] T="Nuovo Utente in Consolelandia" from <[email protected]> for [email protected]
2011-06-10 11:00:25 1QUxZo-0000qr-1q => [email protected] F=<[email protected]> R=lookuphost T=remote_smtp S=1031 H=mx4.hotmail.com [65.54.188.94] C="250  <[email protected]> Queued mail for delivery"

This is from exim mainlog, but.. seems is working for here or am i wrong?

If is working for log so my customer didnt notice email was arriving or was in spamfolder maybe. Should be right?

Regards and thanks
 
I missed to ask a very main question, why do you think that forwarding is not working? How do you determine this?

p.s. try to add a new line.
 
Here an example from directadmin mail queue panel:

EMAIL HEADER
Code:
1QUxCu-0006SD-4R-H
mail 8 12
<>
1307695004 0
-ident mail
-received_protocol local
-body_linecount 38
-max_received_linelength 163
-allow_unqualified_recipient
-allow_unqualified_sender
-frozen 1307695004
-localerror
XX
1
[email protected]

162P Received: from mail by Orange01.CrazyNetwork.it with local (Exim 4.76)
	id 1QUxCu-0006SD-4R
	for [email protected]; Fri, 10 Jun 2011 10:36:44 +0200
043  X-Failed-Recipients: [email protected]
029  Auto-Submitted: auto-replied
068F From: Mail Delivery System <[email protected]>
036T To: [email protected]
059  Subject: Mail delivery failed: returning message to sender
057I Message-Id: <[email protected]>
038  Date: Fri, 10 Jun 2011 10:36:44 +0200

EMAIL BODY
Code:
1QUxCu-0006SD-4R-D
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    Unrouteable address

------ This is a copy of the message, including all the headers. ------

Return-path: <[email protected]>
Received: from mhorpheox by Orange01.CrazyNetwork.it with local (Exim 4.76)
	(envelope-from <[email protected]>)
	id 1QUxCu-0006SA-2m
	for [email protected]; Fri, 10 Jun 2011 10:36:44 +0200
To: [email protected]
Subject: Benvenuto in Consolelandia!
X-PHP-Script: www.playstationlandia.com/forum/index.php for 199.15.234.88
From: "Consolelandia" <[email protected]>
Auto-Submitted: auto-generated
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
Date: Fri, 10 Jun 2011 10:36:43 +0200
Sender:  <[email protected]>

Gentile zppdik77,

Grazie per la registrazione in Consolelandia! Siamo felici che tu abbia scelto di far parte della nostra community<br/> 
Ci raccomandiamo di leggere il nostro regolamento: </br>http://www.playstationlandia.com/forum/showthread.php?32857-Regolamento&p=258301&viewfull=1#post258301</br>

<b>Cerca di usare il primo messaggio per presentarti nell' apposita sezione alla community :-)</b>

Saluti,
Consolelandia

EMAIL LOG
Code:
2011-06-10 10:36:44 Received from <> R=1QUxCu-0006SA-2m U=mail P=local S=2013 T="Mail delivery failed: returning message to sender"
2011-06-10 10:36:44 [email protected] <[email protected]> F=<> R=virtual_aliases: 
2011-06-10 10:36:44 [email protected] <[email protected]> F=<> R=virtual_aliases: 
*** Frozen (delivery error message)

If you have any other command to help me figure out or get more information plaese provide.

For now, thanks for your help.

Regards
 
I know that my main issue is related to delivery to user@domain cause ive servername as domain in directadmin, but, i thot that use that trick has solved that... well, seems not...

So ok, the delivery is working but doenst is a workaround for this issue.

Thanks
 
Back
Top