Hey guys,
Is there a script to combine two files but do it line by line?
EG:
file 1 =
1
2
3
4
file 2 =
a
b
c
d
so that the output would be
1
a
2
b
3
c
4
d
Any help greatly appreciated.
millap
Hi Feherke,
The purpose is to generate profiles for a dslam.
new connection cpe-1
set encapsulation-protocol = atm
set ip-options ip-routing = no
set bridging-options bridge = yes
set bridging-options bridging-group = 451
set bridging-options bridge-type = transparent-bridging
set...
Hi Feherke,
Thanks for the swift response! Thats great, just what I was looking for. Is it also possible to use seq to as do the following in that case:
new connection cpe-1
set nailed-group = 1
new connection cpe-2
set nailed-group = 2
new connection cpe-3
set nailed-group = 3
I should have...
Hi all,
I'm trying to figure a way to script the generation of a config file, eg;
new connection cpe-1
new connection cpe-2
new connection cpe-3
Is there a way I can do this with awk or sed?
Thanks
millap
Hi,
If you set relay_domains = xyz.com all that means is your postfix server will accept email for xyz.com and relay it to it's destination. If this is what you want to do (eg relay to another host) you need to edit /etc/postfix/transport and add an entry for xyz.com. For example:
xyz.com...
Hi, is there anything set in the main.cf.default that would point to the IP address you're talking about?
cd to the directory where your postfix .cf files are located and do a 'grep -l ""<ip.address>" *". That might tell you where the IP address is being taken from.
If you are using local delivery then the main.cf entry alias_maps = maptype://path/to/file is what you need.
If you are delivering to the network (eg your postfix install is a relay to an internal host like MS Exchange) then you should use
relay_recipients = maptype://path/to/file
For...
Hi Nashcom,
I've seen the error "timed out while sending MAIL FROM" a few times when there's an MTU issue on your MTA's NIC. Not because your MTA is the problem but that a node inbetween you and the recipient MTA is causing the problem.
hotmail.com was an issue for my lcoal MTA until I...
Hi pcunix,
Thanks for the reply. I understand that statement but how do I pass the contents of $MYCONFIG to sed? It will replace a known IP address (10.2.3.4 for example).
I need to do a sed 's/10.2.3.4/<$MYCONFIG>/' is this possible?
Thanks
millap
Hi all,
I'm looking for a way to pass sed a variable to change an IP address after a user has been asked for information on what IP address they'd like as part of a machine setup script.
I've already saved the relevant ip, subnet, route and gw information into seperate files which I'd like...
Hi all,
I'm trying to compile postfix 2.1.3 on Solaris 8 and I've run into difficulties.
When running
make
It runs along a little while then errors with the following.
sh: ar: not found
*** Error code 1
make: Fatal error: Command failed for target `libutil.a'
Current working directory...
Hi mwesche,
This link might be of some use, I'm running version 2.1 but haven't checked if this includes the variables you require....
http://archives.neohapsis.com/archives/postfix/2004-01/2864.html
millap
Hi all,
I have a firewall running postfix (2.1.0) which relays email to an internal exchange box.
I'm trying to add the AD lookup | postmap relay_recipients feature to my postfix config to reject unknown users at postfix instead of passing the mail through to the exchange server (which then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.