LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2010, 09:18 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Postfix Requires Virtual Settings To Work


I have a new Postfix mail server on Arch Linux rather than Debian. I elected to go with Arch because it's always up to date / bleeding edge.

Yes, I know thats not a good thing necessarily on servers.

So I followed this guide and only did Postfix, Dovecot, SSL certificates, & Postgray. I didn't do Spamassassin or Procmail.

I didn't understand why in Postfix I had to add:

Code:
virtual_alias_domains = example.com
virtual_alias_maps = hash:/etc/postfix/virtual
And in my 'virtual' file, I had to put:

carlwill@mydomain.tld carlwill@localhost.

If I didn't do this in main.cf and add the above in the virtual file, all mail would show:

Code:
Mar  2 09:55:26 mail postfix/smtpd[1408]: NOQUEUE: reject: RCPT from mail-fx0-f226.google.com[209.85.220.226]: 554 5.7.1 <carlwill@mydomain.tld>: Relay access denied; from=<carlosinfl@gmail.com> to=<carlwill@mydomain.tld> proto=ESMTP helo=<mail-fx0-f226.google.com>
Why do I need this? I don't understand. I though the virtual maps are for hosting virtual domains on a server? My server is mail.mydomain.tld and my mailboxes (Maildir) are all local users. Can someone explain this to me?
 
Old 03-02-2010, 01:15 PM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
The output of postconf -n would be useful, in particular

mydestination
mydomain
myhostname

The top one is important and may be your issue with the 'relay access'.

Something like:
mydestination = $myhostname, localhost.$mydomain $mydomain
mydestination = $myhostname, localhost.$mydomain www.$mydomain, ftp.$mydomain

See 'man 5 postconf' for an explanation - or if you are brave try the Postfix users list if you have teflon pants and don't mind a good flaming for daring to ask a question :-)
{http://www.postfix.org/lists.html}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing postfix to work with SQL,with virtual domains thabangk Linux - Newbie 1 09-09-2009 08:27 PM
Virtual Email Account for virtual domain in Postfix javed_dogar Linux - Server 7 10-17-2008 12:31 PM
Adobe Acrobate Reader Requires A Plugin-That Requires Open LDAP That Requires Berkely Old_Fogie Slackware 10 05-08-2006 05:04 AM
Hi, my work requires I.E. 5.5 or higher..... kuplo Linux - Software 8 10-21-2005 08:31 PM
using postfix to send through a relay server that requires authentication surban99 Linux - Software 1 04-27-2004 06:16 PM

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

All times are GMT -5. The time now is 05:18 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