PDA

View Full Version : Email Issues


thecaptainjs
9th January 2007, 22:23
Basically, I can send email to some places, but not others.
When I send to my yahoo address, here are some of the headers:

EHLO localhost.localdomain
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id DCE653885AD
Received: (from apache@localhost) by localhost.localdomain

They shouldnt be like that, so how do I fix that. (I believe this is causing other problems).


A bounce I get from another mail server: "554 <apache@localhost.localdomain>: Sender address rejected: Domain not found (in reply to RCPT TO command))


Ive been working on fixing this all day! I fixed a few other problems to get to this stage, but I am stuck here! And my inexperience in linux (fedora) doesnt help.


edit: I fixed the :EHLO localhost.localdomain to what it should be. (Was located in the main.cf file for postfix)
The rest still say as above. The email i was trying to send finally started working, but should the rest of them be fixed up there?

I get warning in my logs as well, such as:
"Cannot load Certificate Authority Data" Warning TS Library problem....

till
10th January 2007, 00:29
What is the output of the commands:

hostname

and

hostname -f

which linux distribution do you use?

thecaptainjs
10th January 2007, 16:10
Heh, Fedora i believe.

Localhost

and

Localhost.localdomain


I assume that needs to be changed.. where do I change it?

mphayesuk
10th January 2007, 16:28
Does the contents of your hosts file like like this (except for the firs line)

server1:/etc # vi hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost.localdomain localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
212.xxx.xxx.xxx xxx.domainxxx.co.uk server1
212.xxx.xxx.xxx xxx.domainxxx.co.uk

thecaptainjs
10th January 2007, 16:47
Yea, basically (nothing about IPv6 though).

mphayesuk
10th January 2007, 16:52
look in the postfix config file and see if at the bottom of it your server name and domain are specified.... I think

At the bottom of your hosts file where the ip's are listed (212.xxx....) what is the server name and domain name.

What I would say is that it would be better to change the hostname and domain name of your system.

thecaptainjs
10th January 2007, 17:24
actually this is the full text of my /etc/hosts

#Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

How do I change the hostname and domain name?

martinfst
10th January 2007, 17:35
Try postconf -n | grep myhostname. Do you see a valid tld ? If not change it with postconf -e 'myhostname = xxx.your domain.tld'. And check the contents of /etc/mailname