Re: Postfix error question

From: Ryan Knopp (ryanrk_at_hotmail.com)
Date: 02/05/04


Date: Thu, 5 Feb 2004 12:43:47 -0800


"Molchun" <molchun@REMOVEbluerealm.co.uk> wrote in message
news:402277c3$0$15417$afc38c87@news.easynet.co.uk...
> Ryan Knopp wrote:
> >
> > Yea I noticed that and that solved my problem. I needed a fully
qualified
> > domain plus just the domain. It solved my one program but created
> > another. My email is showing up in the mailq area but they aren't being
> > moved into the the mailbox. The mailq files aren't showing any errors
that
> > I can notice
>
> What exactly did you do to fix the original problem? Step by step, please!
>
> > -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> > 2BFBB1F082 349 Wed Feb 4 19:35:28 ryan@thedomain.com
> > ryan@thedomain.com
> >
> > -- 0 Kbytes in 1 Request.
> >
> > I do have a file in my /var/spool/postfix directory and one of my cron
> > process is sending me email correctly so I'm not sure why when I send
> > myself email it's not getting delivered. I'm on SUSE 9.0 with the
postfix
> > RPM.
>
> If cron manages to send an email then your MTA partialy works :).
> Now, how are you sending the mail to yourself?
> What domains the postfix is configured to accept?
> You're sending your mail as who?
> If you're trying to send mail as root, what is in /etc/alias file?
> There are a few things that can go wrong. If you're sending your mail to
> "user" or "user@localhost" (the way cron does) and it works but doesn't if
> you use fully qualified domain name after the "@" sign then your postfix
is
> just misconfigured. Check the /etc/postfix/main.cf. You can try posting it
> here but you need to remove all the comments since it quite large.
>
> --
> Jabber: molchun@jabber.org
> PGP ID: 0x304563A8
>
The way I fixed the problem before was put in a qualified domain name into
my hosts file and changed my domain in the main.cf to a qualified domain
name. I do own a domain and for the sake of this let's call it thedomain.com
. I sent the smtp message by just telneting into port 25 and using SMTP
protocol commands to send the message. I wasn't sending mail from root, I
haven't set any aliases either.

Here's what my host file looks like
----------------------------------------------------
127.0.0.1 localhost.thedomain.com localhost
192.168.0.101 linux.thedomain.com linux
67.160.40.39 linux.thedomain.com linux
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
-----------------------------------------------------

And here's what my main.cf file looks like.

-----------------------------------------------
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = linux.thedomain.com
mydomain = thedomain.com
myorigin = $mydomain
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain,
www.$mydomain, ftp.$mydomain
mynetworks = 192.168.0.0/28, 127.0.0.0/8
relay_domains = localhost, 127.0.0.1
relayhost = [smtp.comcast.net]
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
unknown_local_recipient_reject_code = 450
setgid_group = maildrop
-------------------------------------------------

I didn't do anything with the alias stuff. Could that be the problem? Thanks
for your help!



Relevant Pages

  • Re: Clues to send mail on LAN through Postfix?
    ... myhostname = myhost.mydomain ... mydomain = mydomain ... mydestination = $myhostname, localhost.$mydomain, localhost ...
    (Fedora)
  • Re: Postfix troubles
    ... > I am using PostFix on SuSE 9.3. ... mydestination = $myhostname, localhost.$mydomain, localhost ... relay_domains = $mydomain ...
    (comp.os.linux.networking)
  • Re: Postfix: can send but cant receive
    ... < myhostname = osireion.abydos.kmt ... < mydomain = abydos.kmt ... < mydestination = $myhostname, localhost.$mydomain, localhost ... "all" is useful to listen to all the interfaces. ...
    (comp.sys.mac.system)
  • Re: Clues to send mail on LAN through Postfix?
    ... myhostname = myhost.mydomain ... mydomain = mydomain ... mydestination = $myhostname, localhost.$mydomain, localhost ...
    (Fedora)
  • Re: Switching Domain name depending on server?
    ... Brennan Stehling wrote: ... Why not use the hosts file? ... mydomain ... and in the code just use "mydomain" instead of localhost or an IP? ...
    (microsoft.public.dotnet.framework.aspnet)