Solved

email problems

Posted on 1998-06-14
8
208 Views
Last Modified: 2010-04-20
Hi, I'm a newbie running Linux on my home box and I have some problems with email through my ISP.

***What I'm using***
Slackware 3.4 distribution of Linux 2.0.30
Sendmail 8.8.7
Fetchmail 4.4.7

***The Problems***
1. I can't send email to people with accounts on the same ISP, including myself, no matter whether I use addresses like
email.address@isp.domain
or
username@isp.domain.
2. People on other domains get my messages, but if they try to use "reply" I don't get their replies. If they send email explicitly to my address it gets through O.K.
I'd really be grateful for any help with this.
0
Comment
Question by:periclis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 1

Expert Comment

by:bryanjones
ID: 1637335
In your /etc/sendmail.cf file their is a line as follows:
# who I masquerade as (null for no masquerading) (see also $=M)
DM(yourISPDomainName ie> idiots.com).
0
 
LVL 2

Expert Comment

by:richrussell
ID: 1637336
Check that your host name is set up correctly in your /etc/hosts file and your /etc/sendmail.cf file - refer to the HOWTO and man pages as to how you should set it up for your setup.

If they don't agree, you don't get mail. But if you explicitly give IP addresses, you will as there is no name resolution to do.

Also ckeck the DNS name server setup, this could be a cause of not resolving properly
0
 
LVL 32

Expert Comment

by:jhance
ID: 1637337
Do you really want to run sendmail in an environment like this?  Since your linux box is the only computer on your network, why not just use Pine, Elm, or some other POP-3 client program and access your mailbox on the ISP with it?
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 32

Expert Comment

by:jhance
ID: 1637338
Do you really want to run sendmail in an environment like this?  Since your linux box is the only computer on your network, why not just use Pine, Elm, or some other POP-3 client program and access your mailbox on the ISP with it?
0
 

Author Comment

by:periclis
ID: 1637339
I'm using BSD sendmail because it came with my distribution... Previous attempts to use smail or pine instead failed, a whole new line of inquiry would have to be started. I've read as much documentation about sendmail as I can get my hands on. My local hostname and domain are set up properly, the Slackware setup utility prompts for the names and does it all automatically.

Masquerading doesn't work because it only masquerades the domain, not the username, and I need to masquerade the whole address, since the ISP's mail system only knows me as username@my.isp, and not as periclis@mymachine.mydomain. If I masquerade, the address becomes periclis@my.isp and I get "unknown user" responses. I could of course make an account on my machine with the same username as I have on my isp and masquerade the domain, but this seems a "kludgy" solution.

Could this be done by setting up some kind of alias for senders on my machine (for outgoing mail)? All the info on aliases I've found seems to refer to aliaases for recipients (incoming mail).
Any ideas?
0
 
LVL 2

Expert Comment

by:jeffa072897
ID: 1637340
With your local sendmail do you have DNS running?
When you send mail off of the system sendmail will query DNS for MX systems.
If not try setng it up, making sure you have an MX record that points to your ISP's mail server. I had to do this to get a local attached Linux box to get mail into the local network.
You may be able to do this in sendmail.cf, but, I can't help you therte.
0
 

Accepted Solution

by:
viki earned 150 total points
ID: 1637341
Here, you will find the way to send email :

****    sendmail.mc file follows    ******

divert(-1)
dnl #####################################################################
dnl # #
dnl # #
dnl # For use with Slackware Linux 3.4, BSD sendmail 8.8.7 #
dnl # #
dnl # Use "m4 filename.mc > /etc/sendmail.cf" to generate #
dnl # the sendmail configuration file. #
dnl # #
dnl # Uses generic mapping to map usernames on local host.domain #
dnl # to email addresses on ISP. #
dnl # #
dnl # Note that no reference to actual local host.domain name is made; #
dnl # generic mapping is applied to the local domain by default.  #
dnl # #
dnl #################################################################
divert(0)
include(`/usr/src/sendmail/cf/m4/cf.m4')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
divert(-1)
dnl # Apply generic mappings to addresses of senders on specified domain.
dnl # Default domain is local.
divert(0)
GENERICS_DOMAIN dnl
FEATURE(always_add_domain)dnl
divert(-1)
dnl # Use generic mapping table with specified map definition.
dnl # Default definition is: hash -o /etc/genericstable
dnl # Entries in /etc/genericstable only need to be as simple as:
dnl # username: email.address@isp.domain
dnl # Bring generic mappings into effect with:
dnl # sendmail -bi -oA/etc/genericstable
divert(0)
FEATURE(genericstable)dnl
FEATURE(masquerade_envelope)dnl
define(`confSMTP_MAILER',`smtp8')dnl
define(`confDEF_CHAR_SET',`ISO-859-1')dnl
divert(-1)
dnl # Specify the outgoing mailserver
define(`SMART_HOST',`smtp:your_smtp_server.com')dnl
FEATURE(local_procmail,``/usr/bin/procmail'')dnl
MAILER(local)dnl
MAILER(smtp)dnl
dnl

Bye
See you
Vikie




0
 

Author Comment

by:periclis
ID: 1637342
Thank you very much Vikie for the detailed response!

GENERICS_DOMAIN and FEATURE(genericstable) are the solution to my problem. My email now works just fine!

Once again, thanks a lot!

0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question