Postfix Virtual Mailbox Question

Hi all,
i've configured postfix to act as smtp server ...
the mailbox are all virual.
and this is the related main.cf section
virtualmailboxbase = /var/spool/virtual
virtualmailboxmaps = hash:/var/spool/virtual/vmailbox
virtualmailboxdomains = hash:/var/spool/virtual/vmaildomains
virtualuidmaps = static:200
virtualgidmaps = static:200
virtualminimunuid = 200
virtualmailboxlock = dotlock
now, for some users i need to send a copy of every mail to a differend address (not local)
For ex. every mail for abuse@mydomain should be in the [email protected] mailbox AND [email protected]
Is there anyone can help me ?
TIA

Hi Jeff,
thanks a million for your help ... you can't believe how is appreciated !!!
Well, i do this:
in /etc/postfix/main.cf (added the bolded line)
virtualmailboxbase = /var/spool/virtual
virtualmailboxmaps = hash:/var/spool/virtual/vmailbox
virtualmailboxdomains = hash:/var/spool/virtual/vmaildomains
virtualaliasmaps = hash:/var/spool/virtual/aliases
virtualuidmaps = static:200
virtualgidmaps = static:200
virtualminimunuid = 200
virtualmailboxlock = dotlock
now: # cat /var/spool/virtual/aliases
test@mydomain mydomain/test, [email protected]
(NOTE: Just for privacy reason i've edited my domain name (FQDN) with mydomain and [email protected] is a real (hidden here) email account)
now: # postmap /var/spool/virtual/vmailbox
now: # postmap /var/spool/virtual/vmaildomains
now: # postmap /var/spool/virtual/aliases
now: # ls /var/spool/virtual/
aliases aliases.db mydomain vmailbox
vmailbox.db vmaildomains vmaildomains.db
now: # postfix stop && postfix start
Ok, that's all i do.
if i try to send a mail to test@mydomain it bounce back.
Questions: the user test has been already defined in the vmailbox file.
If i comment the virtualaliasmaps directive in main.cf the user test@mydomain is able to receive mails.
Any tips ?

Similar Messages

  • Why cant I use postmaster@ and abuse@ in /etc/postfix/virtual with success?

    I'm trying to configure two entries in /etc/postfix/virtual for postmaster and abuse for ALL virtual domains. On a debian box I have running postfix, I can do this easily with:
    abuse@ recipientShortName
    postmaster@ recipientShortName
    When I do this on my 10.5.7 server, and I email [email protected], I get:
    550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual alias table
    The only way to get it to work is to define it for each virtual domain, like this:
    [email protected] recipientShortName
    [email protected] recipientShortName
    [email protected] recipientShortName
    [email protected] recipientShortName
    It would be a real pain to have to enter an entry for abuse and postmaster at each virtual domain. Is some directive required in main.cf to enable this functionality?

    Windows or Mac... if Windows, are you using the Windows add/remove programs?
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 may help

  • Postfix "virtual alias domain" / "mydestination"

    In /var/log/mail.log I often find the following line:
    do not list domain starenterprise.com in BOTH mydestination and
    virtualmailboxdomains
    I reviewed the document http://www.postfix.org/VIRTUAL_README.html where it is stated that not do this, but without stating a reason why.
    All I found during a search engine research was that in some cases a loop can occur, but it was mentioned in connection with a different Postfix topic, not virtual aliases one. And I also think that this doesn't play a role. If a loop occured, I should notice this that a mail account grows largely, shouldn't ?
    My mail service works fine and before doing a change here, I would like to know where is the problem when leaving it as it is currently. Unfortunately I did not found any information about this topic.
    In /etc/postfix/main.cf I have these lines (if I should post others, please let me know):
    myhostname = starenterprise.com
    mydomain = starenterprise.com
    virtualmailboxdomains = hash:/etc/postfix/virtual_domains
    mydestination = $myhostname,localhost.$mydomain,localhost
    In /etc/postfix/virtual_domains file I have starenterprise.com; but there is also a comment not to edit this file.
    So if there is a solution required, I would need to remove starenterprise.com from myhostname (since mydestination refers to). Is this correct ? But what to add then ? starenterprise.com is a domain of mine (the main one of the server, by the way) and used for sending/receiving mail and for naming the mail server.
    But first of all why should I do that ? I really read the Postfix virtual readme carefully, but confessed have no glue what can go wrong. Furthermore I don't want to hurt my running mail service. Hope for some light

    The offence is becuasae you cannot list a domain name as local and virtual,
    one or the other but not both.
    Since it's the main domain name that you have listed in the virtual list,
    removing it from the virtual list will correct the faux-pas.
    Okay, okay, I have removed our main domain from the virtual domain list and luckily anything still works.
    What I not understand and the only thing I really want to know is... what can happen worst when keeping the local domain also listed at the virtual domain list... go I then right straight to **** or need I fear the revange of the Postfix daemon ?
    Confessed I have problems seeing the difference of local and virtual domains, maybe also because the German version of SA headlines the virtual domain list box with "Locally available, virtual domains".
    I'm aware that it seems not to be good practice (otherwise no error/warning would appear, logically). But it is also not good practice to cross a road when the traffic light is red. So I look forward to someone that can tell me more.

  • Using /etc/postfix/virtual to alias mail domains

    Hi all,
    I have setup much content within /etc/postfix/access and /etc/postfix/virtual for a specific virtual domain. The customer has now added another domain that they want to simply alias to the other (.net & .com). I don't want to duplicate all of the complexities within those two files and furthermore, implement any future changes twice, once for each domain.
    So, the first thing I tried was adding this in /etc/postfix/virtual:
    <pre>@domainalias.net @domainoriginal.com</pre>
    This seems to work with one unfortunate side effect. If mail is sent to a non-existent user, it doesn't get rejected immediately and rather, a bounce message is generated.
    Is there any way to do this while maintaining instant rejection for bad addresses?

    No, unfortunately not.

  • Mailman + Postfix + Virtual Domains

    I'm going nuts trying to get this thing working... I spent the best part of yesterday getting Postfix and Courier working with Virtual Domains and a PostgreSQL backend. That's all working fine.
    Now I've spent about the last 5 - 6 hours trying to get Mailman working -- obviously without any luck.
    Can someone point me in the right direction? I tried installing from source, and following the 'official' installation manual, but that doesn't cover Virtual Domains very well (obviously not well enough to get it working at least).
    *Then* I realized that their's a package in EXTRA for Mailman, so I wiped the source install I did, and installed the package, but I'm still stuck.
    I think the main part of my problem, is the manual says that I should have a 'data/virtual-mailman' in the mailman installation directory, but I don't, and can't find any information on how it is created!
    At the end of the day, I just need a single damn mail list on one of my virtual domains for a dozen people -- if anyone has an easier solution than this, please suggest!

    windowbreaker wrote:
    Also, what's the output of
    postconf virtual_maps virtual_alias_maps
    Let me be sure I understand your situation.  You currently have postfix setup with virtual domains and mysql.  You are successfully able to send/receive emails from your virtual accounts, correct?
    Correct.
    postconf: warning: virtual_maps: unknown parameter
    virtual_alias_maps = hash:/etc/postfix/virtual_alias, pgsql:/etc/postfix/pgsql-virtual-forwards.cf
    And the contents of /etc/postfix/pgsql-virtual-forwards.cf
    hosts = localhost
    user = postfix
    password = MY_PASSWORD
    dbname = db_postfix
    query = SELECT forward_to FROM aliases WHERE email = '%s'
    /etc/postfix/virtual_alias
    MAILER-DAEMON: postmaster
    postmaster: root
    bin: root
    daemon: root
    named: root
    nobody: root
    uucp: root
    www: root
    ftp-bugs: root
    postfix: root
    manager: root
    dumper: root
    operator: root
    abuse: postmaster
    decode: root
    root: [email protected]
    windowbreaker wrote:In that case, you're probably trying to have postfix process all email sent to, say, [email protected], by mailman.  In which case you need to pass that email message to a mailman command, right?  I'm sure I got some things wrong, so go ahead and clear them up so I can give you detailed advice.
    Correct. My domain in question is ryla9810.org which has one alias that forwards to my gmail account (phil@), and I need one mail list with a dozen members (team@). The forward works, but the maillist is causing me grief
    Thanks for all your input so far

  • Connect to a guest Virtual Machine question

    I'm new to Oracle VM and i have a question. If you have installed to a server Oracle VM 3.1.1 and then you have a second physical machine with your VM Manager in it and you have created several virtual guest machines with Linux, Windows and etc...
    Can a third machine let say a laptop with either Linux or Windows installed have remote access to the virtual guest machines through a vnc or remote desktop(windows) connection????

    The answer depends. You can isolate your guests Operating Systems but it sounds you don't want to.
    A guest operates just like it would if it was a physical server. Yes. you can ssh,scp,ftp and etc into a guest Linux server if you have these things configured on your guest. The console feature of the VM Manager uses VNC to redirect the console graphics output to the VNC viewer using a java applet that acts likes a proxy.
    It works the same way on windows. However, you can also remote desktop directly into the guest windows server if you have RDP enabled on that server.
    If you do not install these features in the guest OS... then there is nothing in the VM Manager to enable such connections directly to the guest host. The only thing that is redirected graphically is the graphics output via VNC and this is only done through the VM Manager or Enterprise Manager 12c.

  • Auto create mailbox question

    Hi,
    Does the "Exchange email address policy" actually create the mailbox, or just the email address?
    If not, is there an Exchange policy to actually create a mailbox?
    thanks,
    dw

    If I understand correctly, your second question is about creating automatically mailboxes in Exchange 2013. You have two options:
    Create the mailboxes manually (one by one) in the GUI - Exchange Admin Centre
    Bulk create the mailboxes with a script in Exchange Management Shell
    The following video demonstrates the second approach:

  • Virtual Copies Question

    I've made a couple of virtual copies of a photos and now I create a web page with them. My question is that when the web page or flash web page displays the photos all of the virtual copies have the same name as the original. Is there a way that the virtual copies can have a unique name?
    Any help is greatly appreciated.
    thanks,
    foutjo

    Look at the Metadata pane on right side of Library. Under the Filename is a spot for Copy name. Go use it!
    Don
    Don Ricklin, MacBook 2Ghz Duo 2 Core running 10.5.1 & Win XP, Pentax *ist D
    See LR Links list at my http://donricklin.blogspot.for related sites.

  • Virtual PC question?

    I am currently redeveloping my website to bring it to today standard with a bit of php & css.
    (I am not a web designer! but like coding sometimes) and all was going well with Safari, Firefox and IE 5 for Mac. That was until I ask a friend to check my progress on his XP machine and IE7.
    So I decided to revive an old PC and installed XP pro on it.
    With the IE6 from the box, all was worst than on IE7 screen shot provided by my friend. Dam
    I discovered the MS was doing Vitual PC 2004/2007 and that looks like a great option to load multiple OS and browser versions on a single machine.
    Although this PC is a bit prehistoric, it might just work but it makes such a racket that I looked into the Mac version to carry on working on my PB which has been the only machine in the home for few years now.
    MS was doing a Virtual PC v7 for mac PPC that comes with XP Home.
    I was wondering if like the Windows version, VPCv7 allows to run more than one MS.OS as I have few old MS.OS discs lying around.
    I will be happy to go hunting for a Mac version, just to be able to work in silence.
    I will be please to hear from developers and their experiences, and what are the pro and con of the these two solutions.
    Many thanks
    Laurent
    PS: I know I am a few years late on the topic, sorry

    My question has been posted a while ago, and got little answers regarding this issue.
    I read the few thread on VPC and MAMP but with little answers. The probably censured MAMP forum, is particularly bad, i.e if you can't work it out, buy MAMP pro, or some VPC forum comment, I tried and gave up.
    Well I have found almost the full answer by myself after lots of try and errors.
    I decided to share it with you as almost nothing is available apart some vague hints in a couple of thread that seems to be addressed to some expert techs with editing .conf files etc,....
    I am not very familiar with all the settings in Leopard and Windows.
    I also tried to use the PHP install from Leopard, but crashed my system as I am ignorant with Terminal.
    It took me quite a while to get my system working again. In fact 4 installs from the Retail disk (10.5.0), as the erase install doesn't erase at all, and it all went very buggy. (I wonder how can an OS end up in shops with a system that wasn't working at all). I now have made a back-up of what seems to be an almost stable but fragile install of Leopard.
    Anyway lets move on.
    So I tried for once to be a bit more methodical.
    1/ Trying to connect from another computer to MAMP installed the PB.
    This is how I managed to do it.
    My powerbook is connected to the internet through a wireless router using the Airport.
    I was at my girl friend house, so I also used her emac also connected to the same router.
    A friend came by with a PC, and double checked with it too.
    I initially tried to access the MAMP installed on the PowerBook from the eMac.
    An old eMac 700mhz with Tiger installed.
    First I needed to allow Web Sharing.
    In System Preferences (mac) choose,
    Sharing>Web Sharing "On"
    (The address given to access the Powerbook, can change in function of how many devices are connected to the router, so you must check this before connecting. Let say 192.168.1.7)
    To be able to access MAMP folders I needed to add
    MAMP to the firewall as +Allow incoming connection+ in Leopard.
    Once I was satisfied that it was possible, I tried the opposite connection, and installed MAMP on her computer.
    _In Tiger I opened some ports too_
    In Sharing, firewall, I clicked
    New>>> for Port Names> Other
    TCP port Numbers:8888
    UDP port Numbers:8888
    Description: mamp
    I haven't tried MySQL but I believe that one might need to open the corresponding ports in the firewall.
    Now I knew the right address to access MAMP from another computer.
    http://192.168.1.7:8888/MAMP/
    2/ I focused of the VPC connection which was still not working, while I was able to have access to the internet from fresh install.
    I first added VPC to the firewall as +Allow incoming connection+ in Leopard.
    I am not sure this was necessary but I did it.
    I was able to connect to the emac's MAMP from VPC but not to my own PB MAMP where VPC is installed. So I knew it was a problem about connecting to self. I believe it was an issue about the IP. So I decided to try to connect to the net from VPC differently.
    In System Preferences allow:
    Sharing>Internet Sharing "On"
    in my case I choose
    "Share your connection from" >Airport,
    "To Computer using" > Ethernet.
    Then in Virtual PC:
    I select the system I want to use (let's say Windows XP professional) which is the default name from fresh install.
    I click "Settings"
    A window open called +Setting for Windows XP professional+.
    Select
    Networking>Enable networking>Virtual Switch
    You will be probably asked to restart Windows. Do it.
    At the bottom of the window called Setting there is a button called
    +Open Application Preferences+ open it
    Select
    Networking>Virtual Switch Preferences> Build-In-Ethernet
    and click Done.
    You can now start Windows and connect to http://192.168.1.7:8888/MAMP or any other folder in htdocs installed on the PB, and still have access to the internet.
    I believe this is only possible with an internet connection so that an IP is provided for Web Sharing.
    I haven't tried with sharing internet connection from ethernet to ethernet.
    This will do for me for now, and will be able to avoid all the FTP with an online server every time one edits a file. I was amazed at the near silence to my question about VPC and MAMP in this forum and elsewhere.
    Almost like a dirty secret.....
    I hope this will help others an save them precious time playing around
    Cheers

  • Virtual consoles question

    hi, I'm aware this is a probably dumb question but ...
    in my installation there are only 7 VC (virtual console), trying to launch gdm and slim to login into 2 different windows manager (I'm experimenting with compiz fusion standalone and sometimes I need to see how openbox works in the same condition) happened the warning/error message "VC7 is already in use, do you want to use another VC? yes/no" (this is not the exact message) I tried to launch it on VC8 but on that VC I have a "black screen with a flashing underscore" where I cannot write nothing.
    now my question is, is it possible to have more X session opened in more than one virtual console (and so enable more than 7 VC)?
    I'm running a 1 year old installation of arch linux so it's possible I broke something or something has been modified in new installers..
    Thanks for your help

    nitrogen is an application to draw a wallpaper when using only a window manager.
    Thanks for the "DISPLAY=:1" tip, I tried it but unfortunately it doesn't solve my ""problem"" (actually )
    I'll play some more with it tomorrow..
    anyway,in case someone know how nitrogen works, running  "DISPLAY=:1 nitrogen --restore" or "nitrogen --restore" I get:
    "Couldn't find group for :1.0."
    "Could not get bg info"
    p.s. it doesn't work with openbox too so it's not compiz standalone related
    Thanks in advance

  • Postfix virtual domain always_bcc

    We have set up a Xserve running OS X 10.4.x server to receive emails for
    multiple virtual domains. Each domain has many users. Is it possible to
    set up postfix "always_bcc" in main.cf or another configuration file
    to have email received by virtual users in a specific domain copied to specific user
    in that domain? i.e., emails received for [email protected], [email protected]
    will be copied to [email protected]
    There are many other domains in the server (domain2.com, domain3.com), but the
    need is only for incoming emails to 1 domain, not all the domains.

    This should help:
    http://discussions.apple.com/thread.jspa?messageID=4275756&#4275756

  • LD417 + SSL + virtual server question

    We have 2 real servers behind one v-server and we have recently installed SSL on the 2 reals. I have configured my LD for port 443 and have no trouble gaining access through the virtual address.
    My questions: Is it necessary to have a SSL certificate for the VIP and if so, where do we install it?
    Related question: Will a "probe...http" statement work with my port 443 https real servers?
    Thanks, Ben

    Ben,
    You would only need a certificate if the LD was terminating the ssl traffic, which it is not capable of doing. You will need to have certificates installed on the 'real' servers (or the ssl termination device).
    The http probe with not work with ssl services, since the traffic on port 443 is encrypted.
    ~Zach

  • HT2500 smart mailbox question

    s there any way to have an email deleted from my inbox when I put it in automatically into a smart mailbox so that it is not in the mailbox and the inbox

    Not sure I understand the question, but...  I think you are saying that you want to have a message appear in a smart mailbox (based on conditions you define), but not in the mailbox where it is actually located (once it appears in the smart mailbox).
    If that's correct, the better feature to use would be Rules.  Rules can be used to move a message from one mailbox (such as your Inbox) to another mailbox automatically.  They are set up in Mail preferences Rules tab. 
    Click Add Rule.  Set up the rule so that it defines the conditions to be met for the specified action to be performed automatically.  As a simple example, you can have emails received from a particularly important email address go to an "Most Urgent" mailbox automatically.  You can edit rules after they are initially created.
    I think this does what you aksed, because the message is moved from the Inbox to another mailbox, so it disappears in one place and appears in another place.

  • Smart Mailbox Question

    Is there a way to make emails that go into a smart mailbox not show up in my main inbox

    If your rule says Perform Action: Move message to mailbox, it should only go to the folder:
    Mail must be running of course for this to happen.  If it isn't, next time you launch it, contol-click the inbox and choose Apply Rules (or Option-Command-L).

  • AS3 Virtual Joystick Question

    Hi, i Would like to know if its possible in Flash IOS to make a Virtual Joystick that only can move left and right and does something when the joystick is pulled in a certain direction like if the joystick was pulled left it would play the left walking animation and move a Certain x+= And so on
    If So please could i know to do it...
    Cheers

    hi
    here's a tutorial: http://www.adobe.com/devnet/actionscript/samples/interactivity_3.html

Maybe you are looking for

  • ALV GRID: How to change Subtotal and Main total values in standard row

    Hi Experts, By using SORT-SUBTOT = 'X' and  FIELDCATALOG-DO_SUM    = 'X', I will get subtotal and Main total. My requiremnt is I need be calculate values manually and pass the calculated values to subtotal and maintotal. is it possible in ALV GRID? B

  • Profit center wise Financial Statement

    Dear Friends, In one of our client place there are 2 profit centers. There is no Business Area. Now client want to see the Profit & Loss Account for each Profit center. How to see the P&L account statement. Also please provide check list to be verifi

  • Equivalent of select distinct

    Hi all, I have a dataset brought into my Flex app by a server-side database call as XML. I then need to use this same dataset in a couple of different places, eg in a grid, as chart data, in a combo etc. So far no problem. Now, for the combo entries

  • Incorrect value of OCI Parameter NEW_ITEM-VENDOR from punch out catalog

    Dear Experts, We have defined an external punchout catalog under IMG activity Define External Web Services. Under the Source of Supply Assigned to Product Catalog  we maintained business partner of a particluar vendor but when I check the data receiv

  • Elements 4.  Why can`t I upload from cardreader

    Since downloading SP3 for Windows XP I cannot upload photos from my cardreader. The thumbnails appear on the Elements download screen but when I click "get photos" a message says "Photoshop cannot get photos from this device, check your connections.