Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 28th April 2010, 15:40
rumak18 rumak18 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix 2.5 Virtual AND Local Domains and Users

Hello,
i've already read a lot of texts about this topic, but i've never achieved to run my server as requested. I run postfix on SUSE Linux 11.
I've got several registered domains
with subdomains running on my postfix.
So far, i've always added a system account user for each e-mail address in my mail domain (Let's call it maindomain.com)
Now we will get new customers and i want to use a completely new domain for these new customers called newdomain.com. This time, i don't want to use local system accounts for each users. I've already have enough users in my /etc/passwd. So the best solution seems to use virtual mailbox domains. I've already tried some configuration but never succeeded.
Look at my main.cf:
Quote:
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
inet_protocols = ipv4
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = mailserver.meinedomain
delay_warning_time = 1h
message_strip_characters = \0
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname, $mydomain, localhost, localhost@$mydomain, mymaindomain.com, subdomain.mymaindomain
defer_transports =
mynetworks_style = subnet
mynetworks = 192.168.178.1
disable_dns_lookups = no
relayhost = 192.168.178.1
mailbox_command =
mailbox_transport =
strict_8bitmime = no
disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 30720000
message_size_limit = 10240000
append_dot_mydomain = no
As you see, i already use the "virtual_alias_maps" for mapping real email addresses to forged addresses , because i have to separate them laterwards with a special POP3 Listener.
As far as i know, i need the following settings in my main.cf (Eventually i'm wrong) :
Quote:
virtual_mailbox_domains = /etc/postfix/virtual_domains
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
But here again, the virtual_alias_maps would use my existing virtual file and this is not what i want, as i mentioned before. The final question is:
How can i add this second new domain using virtual domains and virtual users , but keeping the local domains/users and settings as they are.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 05:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57


All times are GMT +2. The time now is 19:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.