LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-18-2009, 08:50 AM   #1
cojones
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Rep: Reputation: 15
Weird postfix problem with virtual mailboxes and myhostname


I set up a mail server using postfix and I'm having a weird problem. I read that you should put
myhostname = localhost
and all domains to virtual hosts. So did I and it's working for many email addresses I send emails to but quite some fail with following error:
<blah@example.com>: host example.com[195.XXX.XXX.XXX] said: 550
Invalid HELO string (localhost) (in reply to RCPT TO command)

Which is kinda understandable but when I put a FQDN as myhostname postfix is kinda screwed up, I get following error for incoming mails (I can still send though):
Aug 18 16:39:10 mailsrv postfix/local[5925]: 1D9E423E026F: to=<cojones@mydomain.foo>, relay=local, delay=3.9, delays=3.8/0.04/0/0.04, dsn=5.1.1, status=bounced (unknown user: "cojones")

Do you know why all of the sudden postfix wants to deliver the emails to local user accounts instead of the virtual ones? I only changed myhostname from "localhost" to the FQDN.
 
Old 08-18-2009, 09:06 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
Do you know why all of the sudden postfix wants to deliver the emails to local user accounts instead of the virtual ones? I only changed myhostname from "localhost" to the FQDN.
That's why. The default list of local domains (specified by mydestination) includes myhostname. If you just want to change the HELO name, you can use
Code:
smtp_helo_name = host.example.com
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Courier-Imap+postfix on 5 mailboxes mago Linux - Server 0 05-20-2008 05:02 PM
Counting Mailboxes on Postfix? carlosinfl Linux - Server 7 02-08-2008 04:38 PM
Help with Postfix virtual mailboxes + Courier POP3 Child of Wonder Linux - Software 2 08-04-2006 07:44 AM
mail filtering with Postfix and virtual mailboxes pembo13 Linux - Networking 2 09-17-2004 07:09 AM
Virtual mailboxes radam Linux - Software 0 08-27-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration