LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-18-2013, 03:40 AM   #1
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Rep: Reputation: 77
Howto change root address in forwarded mails


Hi,

I've set up a forward for root's emails as follow:

Code:
root@minnie:~# cat /root/.forward
changed@changed.changed, \root
root@minnie:~#
I've set up sendmail smart relay host with my provider's one:

Code:
# "Smart" relay host (may be null)
DSmail.tin.it
Now the problem, I get this:
Code:
The original message was received at Sat, 18 May 2013 02:54:05 +0200
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
changed@changed.changed
(reason: 553 <root@host.fakedomain.lan> unable to verify address)
(expanded from: <root@host.fakedomain.lan>)

----- Transcript of session follows -----
... while talking to mail.tin.it.:
>>> MAIL From:<root@host.fakedomain.lan> SIZE=1859 AUTH=<>
<<< 553 <root@host.fakedomain.lan> unable to verify address
501 5.6.0 Data format error
I think that to solve this problem I've to change the From field in some way (to a valid email address) but I don't really know how to do that.
 
Old 05-18-2013, 04:59 AM   #2
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 803

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Your setup ist broken. You have to change the hostname of the machine to a valid FQDN present in the DNS, i. e. not something ending in .lan or some other fantasy TLD. mail.tin.it doesn't accept your mail when the return path doesn't work.
 
Old 05-18-2013, 10:23 AM   #3
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Original Poster
Rep: Reputation: 77
My setup isn't broken, I don't want to pay for a real domain. Also I use the domain inside my lan and is working as expected.
It's just mail.tin.it being too much restrictive, with my old provider this configuration was working flawlessy.
I just need a workaround.
 
Old 05-18-2013, 05:28 PM   #4
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 803

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You don't have to pay for a FQDN, just go to http://freedns.afraid.org/ and get one free. Also the use of fantasy top level doamains is harming the Internet infrastructure by flooding the DNS root servers with queries for nonexistant TLDs.

Mail.tin.it is not too restrictive, just because your previous provider was accepting garbage.
 
Old 05-18-2013, 11:04 PM   #5
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
It may be too restrictive, it depends on whether it is just checking the domain name on the end or the whole address.

You can set the domain name in sendmail look for :-
Code:
#Dj$w.Foo.COM
and remove the leading # and change Foo.COM to your ISP's domain name.
 
Old 05-19-2013, 06:34 AM   #6
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by jtsn View Post
You don't have to pay for a FQDN, just go to http://freedns.afraid.org/ and get one free. Also the use of fantasy top level doamains is harming the Internet infrastructure by flooding the DNS root servers with queries for nonexistant TLDs.

Mail.tin.it is not too restrictive, just because your previous provider was accepting garbage.
Flooding ? I use it just in my lan and I have a name daemon of course. Those email are the only thing going in the internet. About 2 mail every week. (And I still don't get why the smtp should resolve the from field.)
If there is no way to solve that I think I'll register a domain, it's pretty cheap.
I won't use a domain in my lan that is valid and not mine.

Quote:
Originally Posted by wildwizard View Post
It may be too restrictive, it depends on whether it is just checking the domain name on the end or the whole address.

You can set the domain name in sendmail look for :-
Code:
#Dj$w.Foo.COM
and remove the leading # and change Foo.COM to your ISP's domain name.
This setting isn't working for me, sendmail still uses domain.lan :/ (I've restarted sendmail)

Last edited by Celyr; 05-19-2013 at 09:06 AM.
 
Old 05-19-2013, 09:16 AM   #7
torimus
Member
 
Registered: Apr 2013
Distribution: Slackware
Posts: 81

Rep: Reputation: Disabled
Quote:
Originally Posted by Celyr View Post
Flooding ? I use it just in my lan and I have a name daemon of course. Those email are the only thing going in the internet. About 2 mail every week. (And I still don't get why the smtp should resolve the from field.)
If there is no way to solve that I think I'll register a domain, it's pretty cheap.
I won't use a domain in my lan that is valid and not mine.



This setting isn't working for me, sendmail still uses domain.lan :/ (I've restarted sendmail)
Jtsn is right. There are so many individuals getting the same/similar idea like you so without such restrictions and policies Internet would be even much more flooded with spam and other unwanted content.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Privileged ports can only be forwarded by root (how to resolve this issue) maxhen Linux - Newbie 1 10-25-2011 09:03 AM
change root / other users email address walidaly Linux - Software 3 03-20-2007 07:32 PM
Privileged ports can only be forwarded by root??? sovietpower Linux - Networking 1 03-10-2005 05:45 AM
mac address being forwarded in redhat? meeble Linux - Networking 4 09-11-2004 01:13 PM
Mail to root forwarded to normal user email client? undecipherable Linux - Software 1 11-21-2002 01:47 PM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration