LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-13-2006, 08:50 PM   #1
shams
Member
 
Registered: Jan 2004
Posts: 537

Rep: Reputation: 30
Exclamation prolbem configuration sendmail?


hi,
i have local web server mysite.com,i am trying to setup a local mail server using sendmail, i can recive mail but can't send, because sendmail cannot attach my domain with my user name like user@mysite.com but sending as user@localhost.localdomain, these are the only changes i made to /etc/mail files:
in sendmail.mc:
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
LOCAL_DOMAIN(`mysite.com')dnl
in access:
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
mysite.com RELAY

in local-host-names:
# local-host-names - include all aliases for your machine here.
mysite.com

in relay-domains:
mysite.com

in virtusertable:
@mysite.com user

after make this is the output when i restart the sendmail:
# /etc/rc.d/init.d/sendmail restart
Shutting down sendmail: [ OK ]
Shutting down sm-client: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]

any one can help please?
 
Old 06-16-2006, 10:38 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If "mysite.com" is a valid domainname owned by you, then has your /etc/hosts a valid alias for mysite.com on the localhost line? Else do this (remove outer quotes) post the output (cat /tmp/result): "echo "3,0 user@mysite.com"|/usr/sbin/sendmail -bt|tee /tmp/result".
 
Old 06-16-2006, 11:00 AM   #3
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
hi unSpawn,
thanks for reply i have domain exmple.other.sc from dyndns.com (one posted i should not use mysite.com but exmple.com), this is the /etc/hosts:
127.0.0.1 localhost.localdomain.com localhost
202.163.91.161 exmple.other.sc
this is the output of command you write but i made some other changes to the sendmail.mc that i posted in other post:
http://fedoraforum.org
if you please read this as well:
# echo "3,0 user@example.other.sc"|/usr/sbin/sendmail -bt|tee /tmp/result
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify input: user @ example . other . sc
Canonify2 input: user < @ example . other . sc >
Canonify2 returns: user < @ exmaple . other . sc . >
canonify returns: user < @ example . other . sc . >
parse input: user < @ example . other . sc . >
Parse0 input: user < @ example . other . sc . >
Parse0 returns: user < @ exmaple . other . sc . >
ParseLocal input: user < @ example . ohter . sc . >
ParseLocal returns: user < @ example . other . sc . >
Parse1 input: user < @ example . other . sc . >
Recurse input: user
canonify input: user
Canonify2 input: user
Canonify2 returns: user
canonify returns: user
parse input: user
Parse0 input: user
Parse0 returns: user
ParseLocal input: user
ParseLocal returns: user
Parse1 input: user
Parse1 returns: $# local $: user
parse returns: $# local $: user
Recurse returns: $# local $: user
Parse1 returns: $# local $: user
parse returns: $# local $: user

Last edited by shams; 06-16-2006 at 11:07 AM.
 
Old 06-16-2006, 02:58 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
thanks for reply i have domain exmple.other.sc from dyndns.com
You probably don't pay for having them redirect email to you (in DNS speak thats "mx records"), and that's easily checkable: "echo "/mx exmple.other.sc"|/usr/sbin/sendmail -bt". That will probably read "getmxrr(exmple.other.sc) returns 0 value(s)".
 
Old 06-17-2006, 08:44 AM   #5
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
thanks for reply, this is the output of command:
#echo "/mx example.other.sc"|/usr/sbin/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> getmxrr(example.other.sc) returns 1 value(s):
example.other.sc.

while runing fc4 i configured the sendmail and it was working fine, but after installation of fc5 all the previous setup has gone, now i have problem.
 
Old 06-17-2006, 09:04 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
OK. Two options then AFAIK. Uncommenting the "#Dj$w.Foo.COM" line to make it read "Djsmtphost.my.domain" in sendmail.cf (don't know the m4 macro for that one) or masquerading in sendmail.mc:
MASQUERADE_AS(`my.domain')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
MASQUERADE_DOMAIN(my.domain)dnl
For each option you'll have to regenerate your config and restart Sendmail.
 
Old 06-17-2006, 10:05 AM   #7
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
Exclamation

hi unSpawn thamks so much for the help these are setups i already done:
LOCAL_DOMAIN(`example.other.sc')dnl
FEATURE(`relay_based_on_MX')dnl
MASQUERADE_AS(`example.other.sc')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
MASQUERADE_DOMAIN(example.other.sc)dn

and this is the sendmail.cf:
#CL root
C{E}root
C{w}exmaple.other.sc
C{M}localhost
C{M}localhost.localdomain
C{M}example.other.sc

# who I masquerade as (null for no masquerading) (see also $=M)
DMexample.other.sc

# my name for error messages
DnMAILER-DAEMON

but still sendmail don't send the mail as user@example.other.sc
 
Old 06-17-2006, 01:45 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
but still sendmail don't send the mail as user@example.other.sc
OK. Well, not OK. You did regenerate and restart I hope? How did you test this? Remote account I hope.
Do any headers show *any* change at all?
 
Old 06-18-2006, 10:55 AM   #9
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
thanks again for reply i run the make then restart the sendmail after changes, using pine to send mail this is the returned mail:
Date: Sun, 18 Jun 2006 19:22:19 +0500
From: Mail Delivery Subsystem <MAILER-DAEMON@exmaple.other.sc>
To: user@localhost.localdomain
Subject: Returned mail: see transcript for details
Parts/Attachments:
1 Shown 13 lines Text
2 Shown 331 bytes Message, "Delivery Status"
3 Shown 547 bytes Message, "test message"
3.1 Shown 1 lines Text
----------------------------------------

The original message was received at Sun, 18 Jun 2006 19:22:19 +0500
from user@localhost

----- The following addresses had permanent fatal errors -----
<user@gmail.com>
(reason: 553 5.5.4 <user@localhost.localdomain>... Real domain name
required for sender address)
(expanded from: <user@gmail.com>)
----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> MAIL From:<user@localhost.localdomain> SIZE=517
<<< 553 5.5.4 <user@localhost.localdomain>... Real domain name required for
sender address
501 5.6.0 Data format error
[ Part 2: "Delivery Status" ]

Reporting-MTA: dns; localhost.localdomain
Arrival-Date: Sun, 18 Jun 2006 19:22:19 +0500

Final-Recipient: RFC822; user@gmail.com
Action: failed
Status: 5.5.4
Diagnostic-Code: SMTP; 553 5.5.4 <user@localhost.localdomain>... Real
domain name required for sender address
Last-Attempt-Date: Sun, 18 Jun 2006 19:22:19 +0500
 
Old 06-20-2006, 06:49 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Two things, it seems:

... while talking to [127.0.0.1]:
>>> MAIL From:<user@localhost.localdomain> SIZE=517
<<< 553 5.5.4 <user@localhost.localdomain>... Real domain name required for sender address

Somewhere it doesn't translate or resolve and I can't figure out what. Now this isn't how it's sposed to be, but could you try and add something to /etc/mail/genericstable?: "localusername(tab)name@resolvabledomainname".
So that would look like "shams(tab)user@example.other.sc". Regenerate, restart Sendmail, retry.
Maybe test too if remote email gets delivered at example.other.sc.


501 5.6.0 Data format error
Dunno what this is, but lets get the other thing going first.
 
Old 06-22-2006, 10:33 AM   #11
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
hi unSpawn,
thanks so much for the help, the last reply did the work, the mail was sent successfully.
 
Old 06-22-2006, 11:33 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hmm. Not the "best" solution I would have hoped for but OK, if it works and breaks nothing else...
 
  


Reply

Tags
sendmail



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
FC3 : KPPP DNS resolve prolbem sandgroper Fedora 4 07-14-2006 12:05 AM
Sendmail Configuration - I need Help ukjairaj Linux - Networking 5 06-23-2005 12:26 PM
SENDMAIL Configuration xianzai Linux - Newbie 8 08-02-2004 09:42 AM
Sendmail configuration lapthorn Linux - Newbie 2 12-09-2003 08:13 PM
Sendmail Configuration TheDude074 Linux - General 1 08-07-2003 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:34 PM.

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