LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2003, 05:19 PM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Sender domain must exist?


We have a sendmail mailserver inside our LAN. It basically works, but I have the feeling that it is not configured quite correctly. However, I do not have a clue what causes the following faults:
- when the smtp server is specified as mail.foo.bar in the mail clients, then some mails sent by these clients are rejected by the recepients with 'Sender domain must exist' error. When the smtp server is specified as serverneme.foo.bar, no mails are rejected. However I must configure many clients to use mail.foo.bar; these are notebooks that may connect to the mailserver also from outside our LAN.
- some user complains that they cannot send mail to their own mailboxes from outside our LAN (they say they can send mail to any other addresses)
- I could not send a mail with pine from our mailserver either I specified mail.foo.bar or servername.foo.bar as the mailserver.
What can be the reason for the above faults?

And my final question: I want to enable the notebooks to send mail via our mailserver even when they are outside our LAN. However, these notebooks only have private IP addresses inside our LAN, and no public IP addresses when they are outside. Since they do not have static IP addresses, I do not know how to allow relaying for these machines only, and not for all machines on the internet.
What is the common solution for this?

Last edited by J_Szucs; 07-21-2003 at 05:21 PM.
 
Old 07-21-2003, 05:26 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# Common e-mail tools
sendmail - postfix - sends mail to local users (and internet when configured correctly)
fetchmail - gets mail from internet accounts (non-Hotmail type)
procmail - sorts and delivers into separate mailboxes
mutt - mail client that sucks less than all the others
Email the Linux Way
Suresh Ramasubramanian's email guide
The Linux Mail User HOWTO
The Linux Electronic Mail Administrator HOWTO
SquirrelMail web mail
Why use Hotmail when there is LinuxMail?
Gotmail, a utility to download mail from Hotmail type accounts

A configuration file for sendmail that I found on Suresh Ramasubramanian's email guide:
Code:
divert(-1)
dnl This is the macro config file used to generate sendmail.cf
dnl file. If you modify this file you will have to regenerate 
dnl sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl        m4 /home/phil/Documents/sendmail.mc > /etc/sendmail.cf <--Change to your path
dnl
dnl You will need to have the sendmail-cf RPM installed for this
dnl to work, if you use an rpm build of sendmail
dnl
dnl include(`../m4/cf.m4')
dnl
dnl If you compile sendmail from a tarball, use the include above.
dnl In this setup, you should create the file as cf/cf/config.mc 
dnl (in the sendmail source tree: eg. /usr/src/sendmail-8.11.6/cf/cf
dnl Now give the command "sh Build config.cf".  Now copy the file
dnl config.cf as /etc/mail/sendmail.cf (please backup first!)
dnl
dnl If you are using the RPM build of sendmail, use the 
dnl include statement given below instead
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confCF_VERSION',`dialup-1.3')
define(`SMART_HOST', `smtp.yourisp.com') <--Change this
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTO_IDENT',0)
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`confCON_EXPENSIVE',true)
define(`confDELIVERY_MODE', `queued')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`ALIAS_FILE',`/etc/mail/aliases')
MASQUERADE_AS(`yourisp.com') <--Change this
FEATURE(`masquerade_envelope')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(`use_ct_file')
FEATURE(local_procmail)
MAILER(smtp)
MAILER(procmail)
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
FEATURE(`accept_unresolvable_domains')
FEATURE(`accept_unqualified_senders')
dnl FEATURE(`relay_based_on_MX')
 
Old 07-21-2003, 05:30 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You can make it work, but only if you give your mailserver public IP or forward all mail ports to it (smtp and pop3). It should also solve problems of users who can't send mail from outside and the notebook users (the public IP will work in both cases).

How is your DNS MX entry configured? Where does it point?
 
Old 07-21-2003, 06:23 PM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
We have one public IP for mail.foo.bar. It is the IP address of our firewall, and port 25 of our internal mailserver is forwarded to port 25 on the firewall, so the mailserver listens there. Pop3 is OK.
However, relaying is only allowed for a remote premise of us. I can configure it, since that site has static IP address. The notebooks have no static IP addresses, so I do not know how to allow relaying for them.
Here are the MX records:
castor IN A 192.168.226.2
IN MX 10 mail
foo.bar. IN MX 100 castor
mail IN CNAME castor.foo.bar.
;mail IN MX 13 castor.foo.bar.
 
Old 07-22-2003, 03:59 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
So it looks you need to configure your mailserver to use smtp authentication. Can't see any other way.
 
Old 09-10-2003, 11:38 PM   #6
Sticky Toejam
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
There is another way. Google for "POP before SMTP" and DRAC. What happens is when a user "pops" his mail from your unix box the incoming IP address is added to a list similar to /etc/mail/access. This (incoming laptop IP address) will be good for 30 minutes (configurable) and then they'll need to pop again. The downside is that they have to pop to your unix box. If they don't have an account on it you will need to create one for them for just this purpose. For large networks DRAC is the better option.

http://popbsmtp.sourceforge.net/
http://www.iecc.com/pop-before-smtp.html
http://mail.cc.umanitoba.ca/drac/
 
  


Reply



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
external: domain of sender address does not exist talking to my server eagleone Linux - Networking 1 11-02-2005 08:54 AM
Sendmail: Domain of sender address does not exist 360 Linux - Networking 1 02-02-2003 08:40 PM
Sender domain must exist. royb Linux - Newbie 15 01-19-2002 11:52 AM
Sendmail Domain of sender address does not exist mantiev Linux - Networking 0 05-08-2001 07:58 AM
Mail Error: sender domain must exist ?? _TK_ Linux - Newbie 2 02-28-2001 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 AM.

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