Solved

email problems

Posted on 1998-06-14
8
202 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
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
 
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now