Error receiving email (Postfix)

9 posts / 0 new
Last post
#1 Wed, 11/18/2009 - 08:34
harmm

Error receiving email (Postfix)

Hi Guys,

Just set up virtualmin with postfix an a few virtual servers, but now I get some weird error when receiving email:

harm.eendhoven@itparaplu.nl (expanded from harm@eendhoven.nl): host mail.itparaplu.nl[83.96.148.40] said: 550 No Such User Here" (in reply to RCPT TO command)

Why does it expand the correct adress into username@wrongdomain.nl?

The adress is present in virtual: harm@eendhoven.nl harm.eendhoven

But somehow it keeps appending the wrong domain name... Thanks a lot!

Wed, 11/18/2009 - 10:01
andreychek

Howdy,

You may want to verify what your hostname is, using the "hostname" command -- and then make sure that name is both:

  1. Setup in /etc/hosts

  2. Exists on the "mydestination" line of /etc/postfix/main.cf

If it gets out of sync, weird things can start occurring in email :-)

-Eric

Wed, 11/18/2009 - 10:29
harmm

The hostname is server1, it's in the /etc/hosts (short and fqdn) and exists as a mydestination in main.cf. Still the same error. It does translate in the username (harm.eendhoven) but it is expanded as being in the wrong domain. Thanx.

Thu, 11/19/2009 - 11:31
harmm

It has been resolved! There was an masquerading option turned on which triggered this behaviour.

Thu, 11/19/2009 - 12:35
harmm

Only now I got a new problem... I host a few domains on this server, when I connect thorugh webmail there is no problem sending email. When I connect through Outlook however, the mails do disappear from Outlook, but it isn't delivered to the external domain. When I try doing it manually through telnet I get a 554 relay access denied. Plz help.

Thu, 11/19/2009 - 12:39
andreychek

You'll need to take a look in the mail logs to see what's going awry, there may be some error messages in them.

You're probably getting relay access denied via telnet due to not authenticating -- it wouldn't allow just anyone to connect and send emails. Which is something you might wish to verify in Outlook, that it's setup to authenticate outgoing email.

-Eric

Thu, 11/19/2009 - 12:50
harmm

This is what the log says when I try do to it manually through telnet or through Outlook:

Nov 19 19:30:00 server1 postfix/smtpd[5077]: connect from s559156bf.adsl.wanadoo.nl[85.145.86.191] Nov 19 19:30:00 server1 postfix/smtpd[5077]: NOQUEUE: reject: RCPT from s559156bf.adsl.wanadoo.nl[85.145.86.191]: 554 5.7.1 harm@itparaplu.nl: Relay access denied; from=harm@eendhoven.nl to=harm@itparaplu.nl proto=ESMTP helo= Nov 19 19:30:02 server1 postfix/smtpd[5077]: disconnect from s559156bf.adsl.wanadoo.nl[85.145.86.191]

How can I resolve this without setting it up as an open relay server? Thanks.

Thu, 11/19/2009 - 12:52
andreychek

It's saying relay access denied -- that's the issue with enabling authentication for outgoing smtp that I mentioned above :-)

In Outlook will be a setting to make sure Outlook attempts to authenticate before sending any email. It's often not enabled by default.

-Eric

Thu, 11/19/2009 - 12:55
harmm

Indeed the smtp-verification did the trick, now the mail is completely up and running. Thanks a million.

Topic locked