Server :: Setting Up Postfix To Use Multiple IP Addresses?

Apr 17, 2011

I set-up his mail server for him with Postfix but what he wants I have no idea how to do.

Essentially he wants it so that the mail gateway IP corresponds with the dedicated IP of the domain and I have no idea how to accomplish this.

I found some documentation on the web saying that the fix for this was to run multiple instances of Postfix which I tried doing but each time I try to start the second instance I get the error that postfix is already running.

There has to be an elegant way to make this happen, I really hate to tell a client something can't be done even though the concept is a bit pointless, IMHO. I am hoping I can get some feedback here on if this can be done and if it can the easiest way for me to accomplish doing it.

Here is some of the config files (example.com has been put in place of the actual domain names and the ip of 5.5.5.5 is in place of the actual IPs


Code:
[root@youronlinehosting ~]# cat /etc/postfix/transport
example.com smtp:5.5.5.5
example.com smtp:5.5.5.6
example.com smtp:5.5.5.7

[Code].....

View 1 Replies


ADVERTISEMENT

Ubuntu :: Configuring Webmin Postfix Server With Multiple Postfix Virtual Hosts?

Sep 25, 2010

is there any HOWTO for configuring Webmin Postfix server with multiple postfix virtual hosts? Seems to be a tough challenge to set it up without any easy manual..

View 1 Replies View Related

Server :: Postfix Setup - Make Own Email Addresses

May 14, 2011

It wasn't too long ago that I discovered Linux/Ubuntu (in terms of actually USING it) and I've been completely blown away by the capabilities it puts in the user's hands! To think that someone can take an old desktop from a trash pile (literally, in my case) and turn it into a web server for ZERO dollars is absolutely crazy.

Anyway, I've been using said desktop as a sort of "dummy" machine to learn Linux. I want to be clear that I've got another computer for personal use and that I understand that setting up server software on any computer poses a security risk. Having said that, I have a few questions regarding mail servers and their setup on Ubuntu. Again - I'm comfortable with what I've done so far in Ubuntu (installing packages, terminal interaction, basic usage)

My question is mainly this: if you have, say, a domain name through DynDNS (let's say example123.com) and it points to an Ubuntu system, does something like Postfix enable you to make your own email addresses such as user1@example123.com and have an email server from wherever the Ubuntu system is?

I've been following the basic Postfix setup here and have had success so far (down to the "Adding your local domains to postfix" section) bu wanted to make sure that what I'm intending to do is what I'm doing (haha... i hope that makes sense). That is: get domain name at DynDNS, host pages on LAMPP server, use Postfix to facilitate incoming/outgoing email for that domain name.

View 7 Replies View Related

OpenSUSE Network :: Set Multiple IP Addresses Onto Server?

Jul 23, 2011

I want to set multiple IP addresses onto my server and I can then put under an alias.

But is it possible to somehow create a script in perl example that can do this for or is it only possible manually?

View 1 Replies View Related

Server :: Sendmail To Split Single Envelope Into Multiple To - Addresses

Aug 4, 2010

Our system uses email to send fairly time-sensitive status messages between programs running on various servers on a WAN. Each email message is sent to two addresses (different servers). The problem occurs when one of the destination mail servers is off the network. I think because it's trying to send one email to two addresses, sendmail attempts delivery to the first address, then to the second address (i.e., serially). When this happens, it hangs for two connect timeout (CONNECT_TO) periods trying to connect to the offline destination, then after the timeout, it then delivers to the other destination. I'm trying to figure out how to work around that connection delay so it doesn't delay delivery to the other destination.

I'm working with the network guys to enable the right ICMP messages that signal when a network is unavailable, but I would also like to try having sendmail split the emails into two envelopes, then use parallel, independent connections for delivery.

After days of reading through the docs (O'Rielly Sendmail book + sendmail docs) I think one way to do this is to use multiple mail queues, but I can't decipher exactly how to do that from the docs.

There might be other, more elegant ways to do the same thing, but again, trying to decipher the docs has my head swimming. (This is my first experience with sendmail.)

View 1 Replies View Related

Ubuntu Servers :: Setup An Outbound SMTP Mail Server With & Using Multiple IP Addresses

Mar 15, 2010

This is the current setup that we have: We have approx 20 clients who pay us to send out a type of e-mail called an E-Blast to their customers. We currently are using 5 Microsoft Windows Virtual Servers to do this. The problem is that those machines are starting to break down. There are times that it will take Microsoft Windows approx 9-10 hours to complete 1 job. This is way too long. We want to move away from Microsoft Windows for this particular type of job as it seems there are more customers who are wanting to use this type of advertising.

It seems that using a Linux Server "Command Line or Shell" environment would be the best way to go as there is no GUI like Windows. Since there is just text...that is something that would/should process very, very quickly.

I am in the process of setting up a new SMTP outbound mail server. This is the current software & configuration (what is installed on this new machine):

All of the customer data (Names, E-Mail Addresses, etc that these e-mails are going to) are currently loaded in a Microsoft SQL Database.

My machine that I am using is plugged into the DMZ. I have 1 ip address for the 1 network card. I have also added/bound 4 more ip addresses to that network card.

I have configured Postfix for Multiple IP Addresses.

I can, from the command line, send successful test e-mails and receive them in my personal account.

As far as I know everything is setup correctly. I can and will post requested information so that it can be verified that everything is setup correctly.

Here are a couple of my questions:

Ensure that I have my Network / Interfaces file and my Postfix's Master.cf/Main.cf files setup correctly?

How can I setup this server to be an Outbound SMTP server and get it to use all 5 of the IP Addresses to send these e-mails quickly?

What can I use to check and ensure that this server is in fact sending out emails on all 5 IP

Addresses (I heard that there is a program named "Postal" that may help in determing this).

View 3 Replies View Related

Server :: Postfix Relaying Email To Multiple Mailbox Server?

Apr 4, 2010

i have setup mailrelay using postfix and relay email to exchange server. The problem is how can i relay email to multiple exchange server. For example: -

domain aa.bb.com relay to exchange server 10.10.10.10
domain 123.test.com relay to exchange server 192.168.10.5

View 5 Replies View Related

Server :: Setting Up A Postfix Mail On Ubuntu?

Apr 16, 2011

how the whole mail server thing works, and what software handles what job. From my understanding POP3 and IMAP are protocols to pull email from a mail server, and SMTP is used to push email to a server. There are many programs that I've seen involved with creating a mail server, but I'm trying to use just Postfix. Postfix can send and receive email right?

My server runs in my basement and runs Ubuntu Server 10.10. It uses Cherokee as its web server, and it runs several other servers as well (SSH, FTP, Git, etc). My goal is to set up a mail server so that websites I run such as a Redmine or a web forum can send emails to people (e.g. an activation email for a user registering on a forum).

Anyway, I set up postfix, and now my server can receive email. I've been able to send an email from my Gmail address to drew@minipenguin.com (my server), and it works. However, if I try to send email from drew@minipenguin.com to my Gmail, it never goes through. I don't care about receiving email, as my only goal is to be able to send it.

View 5 Replies View Related

Server :: Postfix Software - Setting Through Which Implement This?

Feb 20, 2011

I have a very peculiar issue with Postfix. lets say we have three users as user a ,user b ,user c . user a reports to user b ,user b reports to user c .Now if user a sends an email to user x then a policy is defined such that all his his email will be sent to user b not to user x. Is there any setting in postfix through which we can implement this

View 3 Replies View Related

Server :: Setting Up Postfix For Outgoing Mail?

Jul 27, 2011

I'm setting up a server and trying to make it *very* secure. Before I configured my web stack, I was about to install some security packages, Tiger and Samhain, but these packages wanted to install sendmail so that they can send outgoing notifications. From the reading I've been doing, I believe I want postfix instead of sendmail. It is my (perhaps mistaken) belief that installing postfix first will prevent them from installing this sendmail I do not want.

I want to install postfix with the following goals in mind:

* let PHP scripts send mail using the mail function.

* various system notification functions (cron, etc.) will be able to send their emails

* emails destined for root@localhost will be redirected to admin@mydomain.com

* let tiger and/or samhain send their notification emails

* NO INCOMING OR LOCAL MAIL IS PERMITTED. Because mail for my domain is handled by google apps, nobody will be checking mail on this server. Also, this server has very limited disk space. It is therefore very important that we don't have mail accumulating in boxes that will never be checked.

* no unnecessary ports, services, or cron jobs are running.

I've been reading a variety of pages that describe postfix setup on Ubuntu but these articles are imprecise, incomplete, and describe installation of things I don't want like POP/IMAP/etc.

There's also one final wrinkle. I will be setting up postfix to send via Amazon SES.

View 3 Replies View Related

Server :: Postfix As Sending MTA For Multiple Domains?

Jun 7, 2010

I am setting up a Postfix MTA that will be only sending mail for 10 different domains. We have other servers that will be receiving the mail for the domains so I only need to set up for sending on Postfix.

What my issue is I am trying to configure Postfix so that when it sends mail the header shows what domain the mail came from and not the domain the Postfix server is set to. For example....

[URL]

When I send mail from domain2.com I want it to show in the header it was sent from domain2.com and not from domain1.com. What do I need to set in postfix so that this happens? Right now no matter what domain the mail is from the header always shows the server domain and I can't have that.

View 5 Replies View Related

Server :: Multiple Postfix Smtp For A Single Domain?

Mar 15, 2010

I am looking at setting up a multiple postfix SMTP servers for a single domain. Below is my requirement, I would appreciate if someone out there could guide me to achieve this using postfix..

1. Want to setup 2 postfix SMTP Server with 1 POP3 Server.

2. Server1 will host POP3 & SMTP services for domain "metallica.one".(IP: 1.1.1.1, MX: mx1.metallica.one)

3. Server2 will host only SMTP services for domain "metallica.one" (IP: 1.1.1.2, MX: mx2.metallica.one)

4. Server1 & Server2 will be used as load balancing for sending mails. (either manual settings in email client, or auto-loadbalancing is still preferred).

5. Mail received for domain metallica.one on Server2 should be pushed/forwarded/relayed to Server1 where POP3 services are running.

6. Outgoing mails for other domains from Server2 should be sent directly to the other-domain-recipients without relaying to Server1.

View 2 Replies View Related

Server :: Postfix Always_bcc Makes Multiple Copies?

May 5, 2011

I'm using postfix and the always_bcc option to backup the emails which are passed through my MTA. The problem is that (with spamassassin and clamav running as virtual-smtp agents) I get three copies bcc-ed through to the backup account. Is there something I can do to stop the bcc from being carried out on the internal filters and only work on the final send or mailbox delivery?

View 8 Replies View Related

Server :: Postfix As Receiving Mails For Multiple Domains?

Nov 15, 2010

I have configured postfix to send/receive mail from/to for two domains we manage. [URL] and [URL] Most of the cases there is no issue sending out or receiving emails. However, a few users of domainY.com complained that their senders were not able to sent them email. after much investigation, we started thinking that the mailserver failed to send us email may the failing on doing a SMTP Banner issue.

Is there anyone who knows how to deal with this SMTP banner issue with multiple domain. We want different SMTP banner when doing EHLO on different server.

530 mail.domainX.com ESMTP MailEnable Service, Version: 1.981-- denied access at 11/16/10 10:51:21
530 mail.domainY.com ESMTP MailEnable Service, Version: 1.981-- denied access at 11/16/10 10:51:21

View 5 Replies View Related

Server :: Postfix: Sending Mail From Multiple Domains?

Jul 20, 2009

I'm running a server with two sites which both need to be able to send emails. Currently I have Postfix set up to send email via Google Apps. This works fine, but Google's servers ignore the From: address I specify and substitute the one I logged in with. Is there a way to make Postfix log into Google Apps with a different username based on what site the email is coming from? The server does not recieve any mail itself; Google recieves it and we have it set to forward it to the appropriate person's real email address. I'm only worried about sending mail.

(Postfix is not a requirement here, so if there's another mailer that can do this better, I'm open to ideas. However, sending email directly from the server isn't an option as it's a residential IP address and blocked by most of the big email providers.)

View 6 Replies View Related

CentOS 5 Server :: Postfix Multiple Domains One User?

Jun 2, 2010

I am currently running a apache/postfix email service on my server. I am using aliases for two addresses for example:

trscookie@serverone.com
trscookie@secondserver.com

so the emails no matter which domain receives the email trscookie always will receive the email.

However I am unable to work out how to 'reverse' this process, for example.

If i was to go to secondserver.com/webmail I would like the emails to get sent from trscookie@secondserver.com however they are currently all coming from serverone.com. Is it possible to configure this so that it is sent from the correct domain?

Here is my main.cf:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix

[Code].....

View 2 Replies View Related

Server :: Setting Up Postfix As Outgoign Mail Relay For Several Domains / Hosts

Oct 6, 2009

I would like to setup postfix to act as a relay for the outgoing mails of a couple of servers each serving it's own domain.The mails we are talking about are standard administrative emails like user registration, password reset request. The volume of those mails will naturally grow as the site grows. Which for me poses the problem that depending on the growth of the site you will sooner or later hit the quotas imposed by (my otherwise preferred) providers like GMail or smtp.com.

So what I need is a mail relay that will only accept mails from authenticated clients from hosts in its access list and relay their mail without restrictions. Is that possible with postfix? What has to be changed in the config and what are the pitfalls?

View 1 Replies View Related

Server :: Postfix Or Qmail: Configure Multiple Mail For Incoming And Outgoing?

May 17, 2011

As a part of migration I am proposing different scenarios to my organization. One which is asked to prepare is to configure multiple mail servers to handle incoming and outgoing mails. Say I have -[URL], I need to have accept mails from [URL] and send mail from [URL].

View 1 Replies View Related

Server :: VPS Setting Up Multiple Outgoing Ips?

Jun 10, 2011

i have ip's which are 1.1.1.1 and 1.1.1.2. If i log into 1.1.1.1 the outgoing ip shows up as 1.1.1.1 and if i log into 1.1.1.2 the outgoing ip still shows up as 1.1.1.1. I need to set it so that when i log into a 1.1.1.2 to shows up as 1.1.1.2 as the outgoing. Same for when i log into 1.1.1.1 it shows up as 1.1.1.1 on the outgoing end. I need to know how to set it like this. Anyhelp would be greatly appreciated. I am using my VPS as an SSH tunneling. I would to have it set up so that if i log into 1 account the ip will be x.xx.xx.1 and if i log into another account it would be x.x.xx.2 ect. I have been searching for hrs on thsi stuff and no luck at all.

View 2 Replies View Related

Server :: Setting Up Multiple (2-3) FTP Users On Ubuntu 9.04?

Dec 22, 2009

setting up multiple (2-3) FTP users on Ubuntu Server 9.04 I currently only have ONE FTP user, but I need to have 2.

View 1 Replies View Related

CentOS 5 Server :: Setting Up Multiple Websites/IPs?

Sep 25, 2010

I've currently got a centos server setup in my home. It has 1 website running on it and I am using DynDNS.com's service to access the server. DynDNS works by redirecting a free url to the IP address of your server. I would like to add a second website under a different url. However, I'm not sure how to add a second IP address (which I would then use with DynDNS to create a new url).

View 3 Replies View Related

Server :: Setting Up Network Share With Multiple Drives

Aug 12, 2009

I have what will soon become a file server here running Mandriva 2009.1 and I need to set it up for use. There are 6 physical drives, sda-sdf. According to my fstab (pasted below), the OS is installed on sdb.. and for some reason I have a swap partition on sda and sdb. I had a horrible time getting a working installation, and that's probably leftover from a previous attempt.

Question 1: Can I simply edit my fstab to remove the swap on sda, effectively confining all system resources to sdb? The end result I want is all storage space over all drives accessible from a single mount point which can be accessed over the network.

Question 2: Once I sort out the weird fstab, what's the best way to go about setting this up? I imagine I need to format & partition the other drives (all but sdb).. but as far as organizing the free space, what's the best way? Is it possible to have multiple physical drives accessible from a single mount point? Or will the users have to use each drive separately? I was thinking I could create a directory on sdb (in /home?) to use as a root for the network share, and then automount the other 5 physical drives there. Does that make sense?

Code:
/etc/fstab:
# Entry for /dev/sdb1 : UUID=7461ae34-aaa1-443d-82e1-fc9000afcc42 / ext3 relatime 1 1
# Entry for /dev/sdb6 : UUID=41535e04-0368-4682-ab9c-5f791bfea803 /home ext3 relatime 1 2
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda5 : UUID=9edbc49b-302c-43c8-8264-ed49a7f1fff2 swap swap defaults 0 0
# Entry for /dev/sdb5 : UUID=b7039857-dfae-4a92-8ff4-9d1cdcf25351 swap swap defaults 0 0

View 5 Replies View Related

Server :: Setting Up A Multi-level Multiple Fuctions?

Dec 4, 2010

A friend of mine is starting a school this school has computers. I'm assuming windows but that's not that point at the moment. He asked me about setting a main unit that held the kids info and their work complete on the computer. Effectivley what I am asking is how do I set up a server to allow many multiple (at least 50 user at a time) each with their own folder as their home (or desktop I guess is a better word). He also wants a person to be able to add themselves as an account similar to that of signing up for something (ie facebook twitter you know). Oh and ( I almost forgot the most important) how to setup the server to allow the other computer to boot to it via the network...

View 3 Replies View Related

Networking :: Postfix: Mail To Invalid Addresses Being Forwarded To Postmaster Instead Of Bouncing

Jul 8, 2010

Mail going to invalid email addresses are being forwarded to postmaster@domain instead of being bounced. How can I fix this? postconf -d | grep mail_version gives the following: mail_version = 2.2.5

View 4 Replies View Related

Networking :: NAT With Multiple Internet Addresses

Mar 8, 2010

My Linux gateway has multiple address to internet:
eth0 = 76.148.200.3
eth0:0 = 76.148.200.4
eth0:1 = 76.148.200.5
and it's own gateway which is 76.148.200.2 (probably not relevant) and I also have which is not internet, but local:
eth0:2 = 192.168.0.1 netmask 255.255.255.0

They all work fine and tested. Now I am sharing the internet through eth0 (76.148.200.3) to 192.168.0.1/24 and that's working fine. The script I use to do that is here...

Code:
#!/bin/sh
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 >/proc/sys/net/ipv4/ip_dynaddr
iptables -t nat --flush
iptables -A FORWARD -i eth0 -d 192.168.0.1/24 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -s 192.168.0.1/24 -o eth0 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Now all I want to change in the script is to share it through 76.148.200.4 (eth0:1) instead of what is already sharing through 76.148.200.3 (eth0). I am sure this is easy but can't work it out and iptables doesn't accept 'aliases'. How I can do this by modifying this script?

View 5 Replies View Related

Server :: Configure Postfix To Relay Mail To Multiple Internal Mail Servers With Different Domains?

Aug 6, 2010

Two exchange servers internally. One is setup for example.com (192.168.1.10) and the other is setup for example2.com (192.168.1.20) Both are behind a single public IP.

I want to use postfix to sit in front of the two exchange servers. Postfix will accept mail for both domains and relay to the appropriate server. I have postfix installed with only defaults at this point.

View 2 Replies View Related

Debian Configuration :: KVM / One Interface / Multiple IP Addresses

Dec 27, 2015

I'm renting a server which comes with 5 IP addresses, but only one network device. From what I can understand I'm able to create aliases by adding entries to /etc/networks/interfaces, I haven't tried I'm in the planning stages. Hypothetically, 192.168.22.30 is my primary IP and I want to set eth0:1 to have 192.168.22.31, and then after that I want to create a virtual machine (using kvm/qemu) that is able to communicate bidirectionally to the internet over eth0:1, and leave eth0 strictly for administrating (not for VM traffic).

The qemu guides I'm finding seem to assume that I want to use TAP or VDE, what I want to use is a sub-ip/alias. One guide I saw had me eliminate everything from eth0 and put it under br0. That would leave me unable to ssh into my server (and unable to administrate). Is there a way I can do something along the lines of: qemu [options] -net [option] -netdev=eth0:1 ?

View 1 Replies View Related

Ubuntu Networking :: Upstart Vs. Multiple IP Addresses ?

Jan 27, 2010

I have run into a problem that I've tracked down to being a conflict between the "Upstart" init system, and how it handles multiple (alias) IP addresses per physical interface. The summary of the problem is that the interfaces are being configured in the background in parallel with the starting of daemons. One "feature" of this (apparently intended for pluggable devices that would add or remove an interface) is that the network daemons are restarted each time an interface is added (and presumably deleted). But this is a disaster when applied to alias IP addresses.

I first saw the effects of this when during booting Ubuntu Server, the screen showed a message about OpenSSH daemon being restarted ... several times a few seconds apart each. At the time I didn't know what was causing that, but didn't worry because it ultimately was running when I needed it.

But now that I am deploying these servers for specific duty with many IP addresses per system (per network interface), the symptoms are becoming serious, and I need a solution.

1. The IP addresses are coming online too slowly. Apparently the time it takes to restart each daemon is being added to each address being configured.

2. It appears to be disrupting some daemons sometimes. Occaisionally, some daemon just ends up being hung somewhere, or dies. Too many restarts.

3. Sometimes few or even no alias addresses get configured. This might be due to a daemon getting hung, and the whole sequence just not finishing.

4. The "nsd" name server as packaged by Ubuntu doesn't deal well with this at all. It needs all its IP addresses to be up when it starts, or else it won't start. The Ubuntu package of it doesn't including any if-up script at all, although I'm not sure that would do any good.

What I need is a way to configure all these alias IP addresses so they are all configured immediately when the point in time is reached to bring up network interfaces for the first time. These are all static, and all are aliases on ethernet NIC cards plugged into PCIe cards, or integrated in the mainboard. None of them are pluggables. I did run a manual test of "ifconfig" in a loop configuring 2540 alias IP address on eth0 and it only took 2 seconds (no if-up triggers or daemon restarts here). So I know it's fast if nothing else is done between these steps.

Even for pluggable physical interfaces, I see no reason to even try to step through every alias (if it has aliases) with a daemon restart. If an alias IP address is added on later, then I can understand doing it. But if you have a list of 100 aliases for a physical interface, they really should all be done ... or at least attempted ... at once, and do any triggers needed after that.

So, how can I configure or modify Ubuntu Server 9.10 to do that?

I have each alias listed in the "/etc/network/interfaces" file with a separate "auto" and "iface" section for each one, with sequential sub-interface numbers appended to the interface name. I tried it without those sections (e.g. just "address" and other items in sequence) and that prevents the system from even coming up (bootable CD to the rescue to undo that). At least cntrl-alt-del did reboot it.

I tried to attach the /etc/network/interfaces file, but I don't know if it worked because I see no confirmations about it. if it didn't attach and you need to see it, say so, and I'll just paste it in a followup.

View 2 Replies View Related

General :: Setting /proc/sys/vm/overcommit_memory To 1 And Then Exhausting Addresses

Aug 4, 2011

As I understand it, setting /proc/sys/vm/overcommit_memory to 1 is supposed to make sure malloc always succeeds, and set the OOM killer loose if there's an actual memory problem.

I'm wondering what happens when you've malloc'd so much memory that you've exhausted the address space for your process? Does it return NULL despite the overcommit_memory setting, or does your process get a signal? Or something else entirely?

View 1 Replies View Related

Ubuntu Networking :: Getting Dynamic Ip Addresses For Multiple Interfaces?

May 6, 2010

I have 4 Ethernet Interfaces. I need Dynamic IP-Addresses for 2 Interfaces. Can anybody help me how can i achieve that

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved