w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Emails not arriving on dovecot/postfix (debian)
Can you please post the output of /var/log/mail.log ? Because as far as i think the mail.log would contain something like "could not connect to /var/run/dovecot/auth-master: permission denied". If this is the case then all you have to do is change the permissions of /var/run/dovecot/auth-master so that vmail user can access it. But there's a catch to it. Whenever dovecot is restarted the permissions are reverted. You will have to give them again or you can write a script that does that for you every time dovecot or system is restarted. If this is not the case then post the log here for more clarification.

Categories : Misc

Linux postfix/dovecot 554 Relay access denied
If you use a postfix version newer then 2.10, then you need to add the smtpd_relay_restrictions option as described here: # With Postfix 2.10 and later, the mail relay policy is # preferably specified under smtpd_relay_restrictions. /etc/postfix/main.cf: smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination # Older configurations combine relay control and spam control under # smtpd_recipient_restrictions. To use this example with Postfix ≥ # 2.10 specify "smtpd_relay_restrictions=". /etc/postfix/main.cf: smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination ...other rules... After that, any sasl authenticated user should be able to send mails through the

Categories : Linux

postfix; pipe mail content to script for all mail of specific subdomain
It seems i solved the mystery problem. When i create an alias myself from test@example.com to test@vacation.example.com, the script gets called. mail.log Jul 12 15:20:55 mail postfix/pipe[14843]: 8854BB80B07: to=<test@vacation.example.com>, relay=vacation, delay=0.19, delays=0.07/0/0/0.12, dsn=2.0.0, status=sent (delivered via vacation service) vacation.pl logfile: 2013/07/12 15:21:27 DEBUG> /var/spool/vacation/vacation.pl:550 main:: - Script argument SMTP recipient is : 'test@vacation.example.com' and smtp_sender : 'peter@example.org' 2013/07/12 15:21:27 DEBUG> /var/spool/vacation/vacation.pl:580 main:: - Converted autoreply mailbox back to normal style - from test@vacation.example.com to test 2013/07/12 15:21:27 DEBUG> /var/spool/vacation/vacation.pl:590 main:: - Emai

Categories : Misc

postfix 2.9.6.1 forward all mail to an external mail address
Finally found the answer. Listing here for posterity. Add the folowing line to the end of your main.cf file vi /etc/postfix/main.cf virtual_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp Create a file which lists the mail address you want all mails to be sent to vi /etc/postfix/virtual-regexp Add the following: /.+@.+/ forwardingmailaddress@gmail.com add it to postmap postmap /etc/postfix/virtual-regexp you will need to add a virtual file. touch /etc/postfix/virtual now add it to postmap postmap /etc/postfix/virtual

Categories : Ubuntu

Send mail using php and postfix
PHP runs on the server. onClick executes Javascript on the CLIENT machine. You can NOT directly invoke PHP functions via Javascript code, or vice versa. What you're doing can be accomplished with a simple form: <?php if ($_SERVER["REQUEST_METHOD"] == 'POST') { $to = $_POST['to']; $text = $_POST['text']; mail($to, .....); } ?> <form method="POST" action=""> <input type="text" name="to" /> <input type="text" name="text" /> <input type="submit" /> </form> There is no need to use Javascript at all.

Categories : PHP

Postfix sending mail from nonexistent email addresses
The reject_unlisted_sender restriction listed in smtpd_sender_restrictions is listed after permit_mynetworks and permit_sasl_authenticated. Postfix traverses the restriction list in order and terminates when it hits the first permit/reject and hence never reaches reject_unlisted_sender. Since your message wasn't rejected by reject_unauth_destination it must've been accepted because of permit_mynetworks or permit_sasl_authenticated. Additionally, unless the sender address you used had a domain part that was actually "owned" by Postfix (i.e. listed in mydestination, virtual_mailbox_domains, virtual_alias_domains, or relay_domains), it can't be validated and reject_unlisted_sender won't work. See details in the postconf(5) man page. Other observations: The warn_if_reject restriction is pl

Categories : Mysql

unable to semd 1000 mail from cakephp to centos(postfix/covedot)
I'd say this is probably due to the php script taking too long to execute. One solution is to send the emails using BCC but this isn't always an option if you are trying to track emails. You might try sending using a less memory intensive way. What is your current Configemail.php

Categories : Cakephp

Extjs Combo - Why combo is loading while I have not created form include combo
I guess you need set autoLoad: false config option for your combobox's store. In relation to your comments - I've created an example. You can check it on jsFiddle. It was created on ExtJs 3.4, but I think for 4.x it will be not very different. var arrTestData = [ ['AL', 'Alabama', 'The Heart of Dixie'], ['AK', 'Alaska', 'The Land of the Midnight Sun'], ['AZ', 'Arizona', 'The Grand Canyon State'], ['AR', 'Arkansas', 'The Natural State'], ['CA', 'California', 'The Golden State'] ]; var combosCount = 5; var arrItems = []; for (var i = 0; i < combosCount; i++) { var comboId = Ext.id(); // simple array store var store = new Ext.data.ArrayStore({ parentCombo: comboId, fields: ['abbr', 'state', 'nick'], data : [] }); store.

Categories : Extjs

Nginx times out when sending email with php (in wordpress), but the mail still sends
well you can try increasing those variables, i don't know the actual default value, usually around 30 or 60 seconds. client_header_timeout N; client_body_timeout N; send_timeout N; fastcgi_read_timeout N; you can set them in the location that sends the email for example so you don't set this as a default value for all locations. Of course you should replace N with a time period, like 30s for 30 seconds or 2m for 2 minutes.

Categories : PHP

get ip and url from ngx_http_request_t in nginx module
A ngx_http_request_t is a typedef for ngx_http_request_s. See http://lxr.nginx.org/source/src/http/ngx_http.h#0016. It looks as follows (from http://lxr.nginx.org/source/src/http/ngx_http_request.h#0358): 0358 struct ngx_http_request_s { 0359 uint32_t signature; /* "HTTP" */ 0360 0361 ngx_connection_t *connection; 0362 0363 void **ctx; 0364 void **main_conf; 0365 void **srv_conf; 0366 void **loc_conf; 0367 0368 ngx_http_event_handler_pt read_event_handler; 0369 ngx_http_event_handler_pt write_event_handler; ... 0394 ngx_str_t request_line; 0395 ngx_str

Categories : C

nginx rewrite module not working?
You seem to have mixed different bits from different how-to's, without understanding them. Observe: rewrite ^(.*)$ index.php?/$1 last; #question mark, typo? location ~ .php$ # matches end of request_uri fastcgi_split_path_info ^(.+.php)(/.+)$; # matches .php followed by a slash For the third statement to match, .php is never at end of request_uri, so this statement will never match in this location. Remove the question mark from the first statement, remove the dollar sign from the location. Then add: fastcgi_param SCRIPT_FILENAME $document_root$ fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_split_pathinfo; to the location block. Try to understand from the documentation and try to further restrict the location block.

Categories : Nginx

Logging a variable set by nginx's Lua module
You need to define the variable $foo before the Lua module can use it. Check the doc for an example defining the variable within the location directive before utilizing it.

Categories : Nginx

Difference between nginx module and uWSGI plugin
To be nginx-friendly a module must be non-blocking and must not use calls like fork(). If you can write a nginx module like this, use the nginx approach. The problem is that all of the current available nginx modules for mongodb are blocking (they generally use threadpools but can potentially blocks). The only solution would be reimplementing the mongodb protocol (check this project http://mojolicio.us/perldoc/Mango) without using the currently available libraries. On the other side uWSGI has not such limits (it can use processes, threads and coroutines), and a gridfs module is already available: http://uwsgi-docs.readthedocs.org/en/latest/GridFS.html The problem is that there is no doc about writing uwsgi plugins, so you have to base yourself on the current available ones Btw, you ne

Categories : Nginx

error on installing passenger nginx module on ubuntu with ruby 2.0.0 via rvm
You have to install development tools first. Most likely you're missing some libraries just like the error is indicating. I ran into the same thing a couple weeks back. Here is a nice tutorial similar to the one that helped me out. http://alexpearce.me/2012/06/setting-up-a-vps/ With a little bit of luck, I believe that this line will solve your current issues, but be sure to look over the whole document. sudo apt-get -y install curl git-core python-software-properties build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libcurl4-openssl-dev Also: I've also always had troubles when using rvm and have found that rbenv works with less hiccups, which is actually mentioned in this tutorial. For databases, if you aren't using postgres then you should be able to just swap out the

Categories : Ruby On Rails

Find and Replace with Nginx Reverse Proxy setup
It's not ideal, as really the source should be rewritten, but you can use sub_filter to rewrite the content of responses for proxied requests. With your example this would be: location /something { ... sub_filter '(111) 123-4567' '(222) 765-321'; sub_filter_once off; } The default behaviour of this is to replace once (which I have disabled in the example) and to only apply the changes to html pages (this is based on the mime type of the response). This is suitable for using in a reverse proxy as it can replace the Location header with the default options, and links when you disable the sub_filter_once option. While this module is not available unless explicitly configured at compile time, it is my experience that any package manager installed nginx has this option enabled.

Categories : Search

Rewrite rule with nginx replace get variable with slach
You're doing it backwards, try this. rewrite ^/auction/([^/]*)/([0-9]*) /auction.php?$1=$2 piece of advice, if this is a custom application you're writing without a framework, you could find a routing module that you could use and it would help you do every thing easily.

Categories : Nginx

Where is my nginx being configured? Changing nginx.conf still brings me to the 'Welcome to nginx' page
when you rewrited the nginx.conf in the folder of source code of nginx and installed it firstly, it will be copied to /usr/local/nginx/conf/nginx.conf (without specially modification of the configure in the folder of source code). But when you do this secondly, the nginx.conf in the folder of source code will be copied to /usr/local/nginx/conf/nginx.conf.defualt,and it usually don't work unless you use nginx -c /usr/local/nginx/conf/nginx.conf.defualt to assign its configure file evertime. There is a line NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf" in your script above,which indicates the configure file clearly. To handle this, I suggest rewrite /usr/local/nginx/conf/nginx.conf (not the one in the folder of source code) instead.

Categories : Nginx

Extjs 4.1 Combo - How to make select function fire When call combo.setValue
For some reason, the select method of the Ext comboBox doesn't fire the select event. It seems to me from your question that you want to set a value, and manually fire the select event. If so, there are a couple more fields that are necessary to pass; specifically the comboBox itself and the selected record. Here's an implementation that does it. var combo = Ext.getCmp('combo'); var toselect = "Albert Einstein"; combo.select(toselect); var record = combo.getStore().findRecord('name', toselect); combo.fireEvent('select', combo, [record]);

Categories : Extjs

Binding two combo boxes to the same data source,that each combo will have individual behaviour
I don't know what kind of dictionary you are using but i use normal dictionary and this code dont behave like that : Dictionary<string,string> dict = new Dictionary<string, string>(); dict.Add("S1", "Sample1"); dict.Add("S2", "Sample2"); dict.Add("S3", "Sample3"); dict.Add("S4", "Sample4"); comboBox1.DataSource = new BindingSource(dict, null); comboBox1.DisplayMember = "value"; comboBox1.ValueMember = "key"; comboBox2.DataSource = new BindingSource(dict, null); comboBox2.DisplayMember = "value"; comboBox2.ValueMember = "key";

Categories : C#

ImportError: No module named django.core.mail
Probably your PYTHONPATH variable is not set correctly. Start django like this: ./manage.py shell and try this command: import django If this raises an error, you need to set your PYTHONPATH environment variable in a way that it contains the path to your django directory.

Categories : Django

check combo-box selected value string and change selexctedIndex in another combo box
Text will give you the selected text of the editable portion, Selected Item will return you the object and selected index will return you the index. Does this work? if (cmbCamSupplier.Text.Equals("Digital")) cmbCamPrb.SelectedIndex = cmbCamPrb.Items.IndexOf("Digital"); else cmbCamPrb.SelectedIndex = 1;

Categories : C#

disabling combo box on selection of option of another combo box
add jqeury library try this echo'<select> <option valuet=" " onchange="change_select(this)" selected="selected">Choose one</option>'; echo '<option valuet=1>formative</option>'; echo '<option valuet=2>Submative</option>'; echo "</select>"; $quizzes.... //query to get data from sql echo'<select name="second"> <option valuer=" " selected="selected">Choose....</option>'; foreach($quizzes as $id2 => $name) { echo "<option valuer=".$id2.">".$name."</option>"; } echo "</select>"; <script type="text/javascript"> function change_select(args) { if ($(args).val() == "1") { $('[name="second"]').prop('disabled', 'disabled'); } } </scri

Categories : PHP

E-mail app/filter that copies E-mail from the body of the letter and auto replies to that e-mail
I would suggest checking out Google Apps Script. You can create a script just like you would create any other Google Document in Drive by adding the Scripts module from the app store (Scripts is free and created by google). You can also use the gmail API to do the same thing. Both are very well documented and provide a surprisingly high level of access to your emails and their content.

Categories : Email

Why I send a mail with PHP, but receiver get a mail with attachment named "mail.html"?
Did you use any headers? $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; // Mail it mail($to, $subject, $message, $headers); Don't use foxmail so no clue if it works...but if you didn't send headers it's worth a try.

Categories : PHP

Excel VBA replace/substitue module
vResult = vResult + Val(0 & Replace(rCell.Text, "*", vbNullString)) Alternately, if the first part of the cell is the number, you could just use Val vResult = vResult + Val(rCell.Text)

Categories : Excel

Restarting nginx: nginx: [alert] Unable to start the Phusion Passenger watchdog because its executable
Passenger takes what you set in the file nginx.conf by passenger_ruby, for example: passenger_root /home/dev/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.5; passenger_ruby /home/dev/.rvm/wrappers/ruby-1.9.3-p448/ruby;

Categories : Ruby

Combo box to filter another combo box
This is a fairly complex thing to actually do, but it is doable. If you're dead set on it, it will require learning a bit of both VBA and SQL. You essentially need to write VBA code that will first define SQL queries as a string based on your choice in the comboboxes and then passes that string as the source of each following combobox. If your experience with access and databases is limited as you say it is, you may want to opt for a simpler solution for the time being. If you want to see more in detail how something like this would work check out http://www.fontstuff.com/access/acctut15.htm

Categories : SQL

Can a server run Nginx for some sites and Apache Nginx Reverse Proxy for others?
server { server_name example.com; location / { # assuming apache is on port 81 for example proxy_pass http://127.0.0.1:81; # to make apache detect the host header proxy_set_header Host $host; } # if you have assets folders, you can let nginx serve them directly, # instead of passing them to apache location /images { # or /css or /js .. etc try_files $uri =404; } } Note: in the case of assets, sometimes some sites serve assets through rewrites, or even handled by the application it self, you can pass it to apache by adding that in the assets location as a fallback like this location /images { try_files $uri @apache; } location @apache { proxy_pass http://127.0.0.1:81; } In apache you create a virtual host <Virtua

Categories : Apache

Unable to Move the List of values from Right Combo bx to Left Combo bx (Multiple List of values)
try removing count--; from your code I have a feeling this is preventing the loop from moving onto the next iteration if it finds a selected item in the list. seems to work fine to me: http://jsfiddle.net/xBDKg/

Categories : Javascript

Extjs Combo - How to load value to combo using GetForm().load
What you want to do is make sure the combo is loaded before you try to set it's value. You could check if the combo's store has any data in it: if(combo.getStore().getCount() > 0) { //the store has data so it must be loaded, you can set the combo's value //doing a form.load will have the desired effect } else { //the store isn't loaded yet! You can't set the combo's value //form.load will not set the value of the combo } If it does, you can just set the value. But more likely however it will not have been loaded. You could also do something like this //in the controller's init block this.control({ "#myEditButton" : {click: this.loadForm} }); //a function in your controller loadForm: function(button) { var combo; //get your combo somehow, either via references or vi

Categories : Extjs

How to use EWS to retrieve mail-related information about Exchange mail-enabled public folders
I'm able to get it with the following, you'll need to translate it to c#. The result is a folder object extended with an Email property. $PR_PF_PROXY = New-Object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition 26397,[Microsoft.Exchange.WebServices.Data.MapiPropertyType]::Binary $view.PropertySet.Add($PR_PF_PROXY) $foldersResult = $ExchangeService.FindFolders(Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::PublicFoldersRoot,$view) foreach($folder in $foldersResult.Folders) { $folder = $folder | Add-Member -MemberType NoteProperty -Name Email -Value $null -PassThru $guid=$null if($folder.TryGetProperty($PR_PF_PROXY,[ref]$guid)) { $dn=[bitconverter]::ToString($guid) -replace '-' $folder.Email = ([

Categories : C#

Explicitly accessing module var from module function in revealing module pattern
I want the function sayOhai to say "ohai" using the defined var. Assumed i do not want to change the parameter name of sayOhai, how can i access foo's value within sayOhai? You simply can't. The var foo is shadowed by the inner function parameter with the same name.

Categories : Javascript

Warning: mail(): SMTP server response: 550 This is a submission only port. You must authenticate before sending mail in
php.ini & SMTP= - how do you pass username & password PHP mail() command does not support authentication. Your options: ...

Categories : Email

Multiple line processing by SED to change incoming e-mail sender and keep their e-mail within bugzilla comments
Using sed to parse MIME messages is going to be challenging, to say the least. Since you are already apparently using Perl for other things, I would implement this logic in a simple Perl script as well. Adding decoding for the various MIME content-transfer-encodings is then a trivial addition. Perl's Email::MIME package might be a good starting point. You already seem to have a basic understanding of the problem domain; many beginners would make the mistake of assuming that all messages are multiparts, or that all messages have exactly one text/plain part. (Maybe still emphasize that there may be none! Some clients just send a binary application/octet-stream if there is no textual content, or the client may be set up to only compose text/html and not generate a text/plain rendering fo

Categories : Email

Java Mail: Only one part of the message is retrieved / Parsing error / Badly formatted mail
JavaMail debugging tips are here. You can get the entire message text using the Message.writeTo method. Write it to a FileOutputStream or a ByteArrayOutputStream. You might have better luck using the JavaMail reference implementation instead of the Geronimo(?) version you're using.

Categories : Java

PHP mail() in dev environment: open the mail in a browser/editor instead of sending it?
Include a means of determining your environment in your project, or at least some kind of global variable that holds that information. Then build an abstract mail interface that either sends real mails if it's running on a production server, but logs them to local files in case it runs on a dev machine / environment. As a logging package, I would recommend Monolog. This would allow you to design the rest of your application (or at least the mail sending components) in a way that doesn't have to care about the environment.

Categories : Email

SSIS E-mail Script issues. NOT SEND MAIL TASK
Hello bank teller, I'm a friend of Bob's and he said I can use his account. Honest. I might take money out but I'll put it back. This is essentially the conversation that is happening between your mail system and your SSIS package. The mail system isn't trusting that Alice has the authority to send email on Bob's behalf. Why it's silently swallowing the error is dependent on your code. Perhaps there's a status you aren't checking that signals the email was not sent. Update your question with your actual code if you want some eyes to review it. There are two options for resolution. The first, and probably least agreeable, is to have the From account authorize every possible user. Dumb, horrible and probably violates every practice known to man but it'd entail no code change. The "rig

Categories : SQL

Stop registration mail while sending invitation mail in ruby
I did this (and a few other modifications) by altering the devise_invitable controller action for create. The README has a section called "Configuring Controllers" to get you started down this road. You want to follow the instructions in that section to create a new controller that inherits from Devise::InvitationsController. In the newly-created controller include a create method that uses the skip_confirmation! method and then super (refer) to the parent controller to finish the action. This is untested code, but you'd have something like: class Users::InvitationsController < Devise::InvitationsController def create resource.skip_confirmation! super end end When I was figuring out how to modify the default Devise_Invitable behavior, I found looking at the sou

Categories : Ruby On Rails

Switched exchange servers, kept the same e-mail but some incoming mail is still going to the old server
I'm assuming that you changed the MX records for your domain, so that they now point to Microsoft 365's mail servers, correct? If so, it may take a day or two for the DNS changes to propagate.

Categories : Email

Default mail client continues to be running in background after mail is sent
Ok finally figured out the solution. The problem is, am using Application#Context to start the activity. When ever we use Application#Context a new Task is created ( that's why, adding the flag Intent.FLAG_ACTIVITY_NEW_TASK in the intent if we don't add this Flag then app crashes) . To avoid creation of new task all we need to do is use the right context ie., use the activities context. ("Be careful and avoid memory leaks in case storing the activity context reference"). So the code is as below Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("message/rfc822"); intent.putExtra(Intent.EXTRA_SUBJECT, "Report issue: ""+mIssueTitle+"""); intent.putExtra(Intent.EXTRA_TEXT, mailBody); String[] mailIds = new String[] {getReportingMailId()}; intent.putExtra(Intent.EXTRA_EM

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.