is it ever possible to have multiple recipients in /etc/postfix/recipient_bcc_maps ?
/etc/postfix/recipient_bcc_maps :
source#domain.tld recipient1#domain.tld
Can I do something like:
**source#domain.tld rcpt1#domain.tld,rcpt2.domain.tld,rcpt3#domain.tld**
Googling with no success whatsoever
You cant specify multiple recipients in the right hand side of the recipient_bcc_maps. So
source#domain.tld rcpt1#domain.tld,rcpt2.domain.tld,rcpt3#domain.tld
is not possible. But The BCC address is subject to virtual alias expansion (and aliases(5)
expansion for any resulting local recipients). So
#/etc/postfix/main.cf
#...
virtual_alias_maps = hash:/etc/postfix/vmaps
#...
#/etc/postfix/recipient_bcc_maps
source#domain.tld rcpt#domain.tld
#/etc/postfix/vmaps
rcpt#domain.tld rcpt1#domain.tld,rcpt2.domain.tld,rcpt3#domain.tld
should help you to achieve it.
Ref: Postfix Mailinglist
Related
How do I know which kind of data is currently emitted by a physical channel?
physical_chan.ai_meas_types gives me the possible type of data (ex: CURRENT, TEMPERATURE_THERMOCOUPLE, VOLTAGE). I would like to know which one are currently emitting.
Do I try/except add_ai_current_chan to check if a current is emitted? It seems like an ugly hack. Any suggestions?
import nidaqmx.system
system = nidaqmx.system.System.local()
device = system.devices["PXI1Slot2"]
with nidaqmx.Task() as task:
for physical_chan in device.ai_physical_chans:
# physical_chan.ai_meas_types gives me the possible options.
# task.ai_channels.add_ai_current_chan(physical_chan.name)
task.ai_channels.add_ai_voltage_chan(physical_chan.name)
print(task.read())
this is the answer section of : dig supl.nokia.com
;; ANSWER SECTION:
supl.nokia.com. 82858 IN CNAME nokia.supl.svc.ovi.com.
nokia.supl.svc.ovi.com. 58 IN CNAME nokia.supl.svc.ovi.com.glb.as1248.net.
nokia.supl.svc.ovi.com.glb.as1248.net. 300 IN CNAME geo3.nokia.supl.svc.ovi.com.glb.as1248.net.
geo3.nokia.supl.svc.ovi.com.glb.as1248.net. 60 IN CNAME supl.nokia.us-east-1.pos.here.com.
supl.nokia.us-east-1.pos.here.com. 100 IN CNAME pra-suplnokia-516311011.us-east-1.elb.amazonaws.com.
pra-suplnokia-516311011.us-east-1.elb.amazonaws.com. 60 IN A 52.3.37.45
pra-suplnokia-516311011.us-east-1.elb.amazonaws.com. 60 IN A 52.22.201.16
I was expecting an IP address like what I got for : dig supl.google.com
;; ANSWER SECTION:
supl.google.com. 300 IN A 74.125.195.192
What is this list of servers I got for nokia?
It's a chain of CNAME pointers. If you look at the names on the right-hand side of the lines with "CNAME" in them, they are the same as the left-hand name on the following line, until you get to the final step where the right-hand name leads to two A records (which then hold the IP addresses you wanted).
Are this names of different servers? Or same one?
Also, some other DNS server returns in its answer only 3 CNAMEs (and not this whole list) and I see in wireshark for the 3rd CMANE :
nokia.supl.svc.ovi.com.glb.as1248.net: type A, class IN, addr 127.0.0.1
(So i get localhost as my query result and can not establish connection)
How can that be? Why does it return only 3 and not the whole list, like i got when i did 'dig' command?
Thanks
Can someone point me out how to properly search using imaplib in python. The email server is Microsoft Exchange - seems to have problems but I would want a solution from the python/imaplib side.
https://github.com/barbushin/php-imap/issues/128
I so far use:
import imaplib
M = imaplib.IMAP4_SSL(host_name, port_name)
M.login(u, p)
M.select()
s_str = 'hello'
M.search(s_str)
And I get the following error:
>>> M.search(s_str)
('NO', [b'[BADCHARSET (US-ASCII)] The specified charset is not supported.'])
search takes two or more parameters, an encoding, and the search specifications. You can pass None as the encoding, to not specify one. hello is not a valid charset.
You also need to specify what you are searching: IMAP has a complex search language detailed in RFC3501ยง6.4.4; and imaplib does not provide a high level interface for it.
So, with both of those in mind, you need to do something like:
search(None, 'BODY', '"HELLO"')
or
search(None, 'FROM', '"HELLO"')
I am running ruby unit tests against Chrome using watir-webdriver. Whenever a test is run and chromedriver.exe is launched output similar to below appears:
Started ChromeDriver
port=9515
version=26.0.1383.0
log=C:\Home\Server\Test\Watir\web\chromedriver.log
[5468:8796:0404/150755:ERROR:accelerated_surface_win.cc(208)] Reseting D3D device
[5468:8996:0404/150758:ERROR:textfield.h(156)] NOT IMPLEMENTED
[WARNING:..\..\..\..\flash\platform\pepper\pep_module.cpp(63)] SANDBOXED
None of this impacts the correct functioning of the tests, but as one might imagine the appearance of "ERROR" and "WARNING" might be rather confusing to, for example, parsing rules in Jenkins looking for failures. Sure I can get really fancy with regular expression in the parsing rules, but it would be really nice to turn off this verbose and unnecessary logging on the part of chromedriver.exe. I have seen many mentions of this searching for an answer. No one has come up with a solution. Yes, chromedriver possibly has a "--silent" option, but there seems to be no way to pass that to the executable. Code similar to below is supposed to work, but has zero effect as far as I can see. Any ideas?
profile = Selenium::WebDriver::Chrome::Profile.new
profile['--cant-make-any-switches-work-here-how-about-you'] = true
browser = Watir::Browser.new :chrome, :profile => profile, :switches => %w[--ignore-certificate-errors --disable-extensions --disable-popup-blocking --disable-translate--allow-file-access]
Here's help for anyone else searching
Find ...selenium\webdriver\chrome\service.rb
Path start may differ on your system
And I added "-silent" to the passed parameters .... However, this silenced everything but the error/warning messages.
def initialize(executable_path, port)
#uri = URI.parse "http://#{Platform.localhost}:#{port}"
server_command = [executable_path, " -silent", "--port=#{port}"]
#process = ChildProcess.build(*server_command)
#socket_poller = SocketPoller.new Platform.localhost, port, START_TIMEOUT
#process.io.inherit! if $DEBUG == true
end
set chromeOptions with key --log-level=3 this should shut it up
I was able to divert the hundreds, yes hundreds, of chrome driver log messages that were showing up in cucumber stdout by using the :service_log_path argument.
#browser = Watir::Browser.new :chrome, :service_log_path => 'chromedriver.out'
the '-silent', or '--silent', or ' -silent', or ' --silent' parameter suggested above did nothing when I added it to ...selenium\webdriver\chrome\service.rb. And having to tweak the gem itself is not a particularly viable solution.
I couldn't find a place to capture the chromedriver stderr and divert it to null (not to mention having to handle doing that in windows and in *nix/osx)
The driver should default to something way less verbose. In this case INFO is way too verbose as hundreds of log entries pop out as INFO, 90%+ of them identical.
At least the :service_log_path argument works most of them.
You can try -Dwebdriver.chrome.logfile="/dev/null" and/or -Dwebdriver.chrome.args="--disable-logging" to the options of java that runs selenium-server-standalone-what.ever.jar
I have Vim 7.2 installed on Windows. In GVim, the <C-PageUp> and <C-PageDown> work for navigation between tabs by default. However, it doesn't work for Vim.
I have even added the below lines in _vimrc, but it still does not work.
map <C-PageUp> :tabp<CR>
map <C-PageDown> :tabn<CR>
But, map and works.
map <C-left> :tabp<CR>
map <C-right> :tabn<CR>
Does anybody have a clue why?
The problem you describe is generally caused by vim's terminal settings not knowing the correct character sequence for a given key (on a console, all keystrokes are turned into a sequence of characters). It can also be caused by your console not sending a distinct character sequence for the key you're trying to press.
If it's the former problem, doing something like this can work around it:
:map <CTRL-V><CTRL-PAGEUP> :tabp<CR>
Where <CTRL-V> and <CTRL-PAGEUP> are literally those keys, not "less than, C, T, R, ... etc.".
If it's the latter problem then you need to either adjust the settings of your terminal program or get a different terminal program. (I'm not sure which of these options actually exist on Windows.)
This may seem obvious to many, but konsole users should be aware that some versions bind ctrl-pageup / ctrl-pagedown as secondary bindings to it's own tabbed window feature, (which may not be obvious if you don't use that feature).
Simply clearing them from the 'Configure Shortcuts' menu got them working in vim correctly for me. I guess other terminals may have similar features enabeld by default.
I'm adding this answer, taking details from vi & Vim, to integrate those that are already been given/accepted with some more details that sound very important to me.
The alredy proposed answers
It is true what the other answer says:
map <C-PageUp> :echo "hello"<CR> won't work because Vim doesn't know what escape sequence corresponds to the keycode <C-PageUp>;
one solution is to type the escape sequence explicitly: map ^[[5^ :echo "hello"<CR>, where the escape sequence ^[[5^ (which is in general different from terminal to terminal) can be obtained by Ctrl+VCtrl+PageUp.
One additional important detail
On the other hand the best solution for me is the following
set <F13>=^[[5^
map <F13> :echo "hello"<CR>
which makes use of one of additional function key codes (you can use up to <F37>). Likewise, you could have a bunch of set keycode=escapesequence all together in a single place in your .vimrc (or in another dedicated file that you source from your .vimrc, why not?).