Mailing List Archive

Unable to send mail with Postfix
Hi all,

I'm trying to get Postfix (2.1.5) to SEND mail (I can RECEIVE mail), but I
think I made a configuration error.

Here is my Postfix configuration (postconf -n):

alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 2
home_mailbox = .maildir/
html_directory = no
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = smtp.novaeres.com
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5-r1/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

I only made these configuration changes to /etc/postfix:

myhostname = smtp.novaeres.com
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks_style = subnet

Note that my hostname is not really "smtp", but "miranda". I do have a A
record smtp.novaeres.com that points to this machine:

nslookup -type=a smtp.novaeres.com

Name: smtp.novaeres.com
Address: 212.238.149.98

And a MX record that points to smtp.novaeres.com:
nslookup -type=mx novaeres.com

novaeres.com preference = 100, mail exchanger = relay-2.mail.nl.demon.net
novaeres.com preference = 10, mail exchanger = smtp.novaeres.com
novaeres.com nameserver = ns1.demon.nl
novaeres.com nameserver = ns2.demon.nl
smtp.novaeres.com internet address = 212.238.149.98
ns1.demon.nl internet address = 194.159.73.6
ns2.demon.nl internet address = 194.159.176.4

This is the output from /var/log/mail/current when I try to send a mail
from my user account to another email address hosted by my provider:

Oct 26 11:29:24 [postfix/pickup] 1B7A0F421: uid=1000 from=<guray>
Oct 26 11:29:24 [postfix/cleanup] 1B7A0F421:
message-id=<20041026092924.GA1094@miranda.novaeres.com>
Oct 26 11:29:24 [postfix/qmgr] 1B7A0F421: from=<guray@novaeres.com>,
size=438, nrcpt=1 (queue active)
Oct 26 11:29:26 [postfix/smtp] connect to xs4all.nl[194.109.21.3]:
Connection refused (port 25)
Oct 26 11:29:27 [postfix/smtp] connect to xs4all.nl[194.109.21.4]:
Connection refused (port 25)
Oct 26 11:29:27 [postfix/smtp] 1B7A0F421: to=<seng@xs4all.nl>, relay=none,
delay=3, status=deferred (connect to xs4all.nl[194.109.21.4]: Connection
refused)

Weird thing is that the MX record for xs4all.nl does not point to
194.109.21.4, but Postfix is trying to connect to that IP address anyway,
in my eyes it should connect to one of the mx servers found below:

nslookup -type=mx xs4all.nl

Non-authoritative answer:
xs4all.nl preference = 100, mail exchanger = mx1.xs4all.nl
xs4all.nl preference = 100, mail exchanger = mx2.xs4all.nl
xs4all.nl preference = 100, mail exchanger = mx3.xs4all.nl
xs4all.nl preference = 100, mail exchanger = mx4.xs4all.nl

Authoritative answers can be found from:
xs4all.nl nameserver = ns2.xs4all.nl
xs4all.nl nameserver = ns.ripe.net
xs4all.nl nameserver = ns.xs4all.nl
mx1.xs4all.nl internet address = 194.109.24.132
mx2.xs4all.nl internet address = 194.109.24.138
mx3.xs4all.nl internet address = 194.109.24.134
mx4.xs4all.nl internet address = 194.109.24.139
ns2.xs4all.nl internet address = 194.109.9.100
ns.ripe.net internet address = 193.0.0.193
ns.ripe.net IPv6 address = 2001:610:240:0:53::193
ns.xs4all.nl internet address = 194.109.6.67

Anyone out here that can help?
Many thanks,
Guray






--
gentoo-user@gentoo.org mailing list
Re: Unable to send mail with Postfix [ In reply to ]
Güray Sen wrote:
> Hi all,
>
> I'm trying to get Postfix (2.1.5) to SEND mail (I can RECEIVE mail), but I
> think I made a configuration error.

Have u looked at the relayhost parameter of /etc/postfix/main.cf ?

Some ISP's doesn't allow connections to arbitrary smtp servers but
recommend you to use a special smtp relay host.

/Andreas

--
gentoo-user@gentoo.org mailing list
Re: Unable to send mail with Postfix [ In reply to ]
I wonder if that is the problem as Postfix didn't try to connect to my
provider's mail server, but a different server. Same when I try to send
something to my Gmail account:

Oct 26 12:48:35 [postfix/pickup] EAE8BF6F3: uid=1000 from=<guray>
Oct 26 12:48:35 [postfix/cleanup] EAE8BF6F3:
message-id=<20041026104835.GA1144@miranda.novaeres.com>
Oct 26 12:48:35 [postfix/qmgr] EAE8BF6F3: from=<guray@novaeres.com>,
size=443, nrcpt=1 (queue active)
Oct 26 12:49:06 [postfix/smtp] connect to gmail.com[216.239.57.107]:
Connection timed out (port 25)
Oct 26 12:49:06 [postfix/smtp] EAE8BF6F3: to=<guray.sen@gmail.com>,
relay=none, delay=31, status=deferred (connect to
gmail.com[216.239.57.107]: Connection timed out)

I did try to specify my ISPs mail server as a relay with the relayhost
parameter, but relaying was not permitted. I could ask my ISP to allow me
to relay, but shouldnt a non-open/non-blacklisted smtp server be able to
send email???

Guray

On Tue, 26 Oct 2004, Andreas Vinsander wrote:

> Güray Sen wrote:
> > Hi all,
> >
> > I'm trying to get Postfix (2.1.5) to SEND mail (I can RECEIVE mail), but I
> > think I made a configuration error.
>
> Have u looked at the relayhost parameter of /etc/postfix/main.cf ?
>
> Some ISP's doesn't allow connections to arbitrary smtp servers but
> recommend you to use a special smtp relay host.
>
> /Andreas
>
> --
> gentoo-user@gentoo.org mailing list
>
>



--
gentoo-user@gentoo.org mailing list
Re: Unable to send mail with Postfix [ In reply to ]
Could it be because I don't have any DNS related tools on my system (like
nslookup/dig)? I looked at the package database and I could emerge bind
tools for example...

Thanks

On Tue, 26 Oct 2004, Güray Sen wrote:

> I wonder if that is the problem as Postfix didn't try to connect to my
> provider's mail server, but a different server. Same when I try to send
> something to my Gmail account:
>
> Oct 26 12:48:35 [postfix/pickup] EAE8BF6F3: uid=1000 from=<guray>
> Oct 26 12:48:35 [postfix/cleanup] EAE8BF6F3:
> message-id=<20041026104835.GA1144@miranda.novaeres.com>
> Oct 26 12:48:35 [postfix/qmgr] EAE8BF6F3: from=<guray@novaeres.com>,
> size=443, nrcpt=1 (queue active)
> Oct 26 12:49:06 [postfix/smtp] connect to gmail.com[216.239.57.107]:
> Connection timed out (port 25)
> Oct 26 12:49:06 [postfix/smtp] EAE8BF6F3: to=<guray.sen@gmail.com>,
> relay=none, delay=31, status=deferred (connect to
> gmail.com[216.239.57.107]: Connection timed out)
>
> I did try to specify my ISPs mail server as a relay with the relayhost
> parameter, but relaying was not permitted. I could ask my ISP to allow me
> to relay, but shouldnt a non-open/non-blacklisted smtp server be able to
> send email???
>
> Guray
>
> On Tue, 26 Oct 2004, Andreas Vinsander wrote:
>
> > Güray Sen wrote:
> > > Hi all,
> > >
> > > I'm trying to get Postfix (2.1.5) to SEND mail (I can RECEIVE mail), but I
> > > think I made a configuration error.
> >
> > Have u looked at the relayhost parameter of /etc/postfix/main.cf ?
> >
> > Some ISP's doesn't allow connections to arbitrary smtp servers but
> > recommend you to use a special smtp relay host.
> >
> > /Andreas
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>
>


--
gentoo-user@gentoo.org mailing list
Re: Unable to send mail with Postfix [ In reply to ]
Güray Sen wrote:
> Could it be because I don't have any DNS related tools on my system (like
> nslookup/dig)? I looked at the package database and I could emerge bind
> tools for example...

You definitely need a way to resolve fqdn's to ip-addresses, but that
should be taken care of by /etc/resolv.conf

What does it look like?

But the main thing is why your ISP doesn't allow you to relay mail,
didn't they supply information regarding sending of mail when you got
your connection towards the internet?

/Andreas

--
gentoo-user@gentoo.org mailing list
Re: Unable to send mail with Postfix [ In reply to ]
This is my resolv.conf:

domain novaeres.com
nameserver 10.0.0.138
search novaeres.com

The nameserver (10.0.0.138) is pointing to my router. My router is
configured to use my ISPs name servers to resolve requests. This works I guess as I can
download ebuilds from different mirrors and wget also works:

wget --spider http://www.google.com
--13:38:49-- http://www.google.com/
Resolving www.google.com... 66.102.9.104, 66.102.9.99
Connecting to www.google.com[66.102.9.104]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://www.google.nl/cxfer?c=PREF%3D:TM%3D1098790772:S%3DPiMcUf5QNfMRC87k
[following]
--13:38:58--
http://www.google.nl/cxfer?c=PREF%3D:TM%3D1098790772:S%3DPiMcUf5QNfMRC87k
Resolving www.google.nl... 66.102.9.104, 66.102.9.99
Connecting to www.google.nl[66.102.9.104]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.google.nl/ [following]
--13:39:06-- http://www.google.nl/
Connecting to www.google.nl[66.102.9.104]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,150 [text/html]
200 OK

Maybe the router doesn't resolve MX lookups correctly?

I only got information from my ISP about RECEIVING mail from their
mail servers to my smtp server with so-called "mailkicks". But this is not
exactly the setup I want/need.

Thanks,
Güray

On Tue, 26 Oct 2004, Andreas Vinsander wrote:

> Güray Sen wrote:
> > Could it be because I don't have any DNS related tools on my system (like
> > nslookup/dig)? I looked at the package database and I could emerge bind
> > tools for example...
>
> You definitely need a way to resolve fqdn's to ip-addresses, but that
> should be taken care of by /etc/resolv.conf
>
> What does it look like?
>
> But the main thing is why your ISP doesn't allow you to relay mail,
> didn't they supply information regarding sending of mail when you got
> your connection towards the internet?
>
> /Andreas
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
gentoo-user@gentoo.org mailing list