I have setup local development server which has CentOS. While working with project if I have actual data and our code has email notification functionality, then email gets sends to actual email address. I want that Sendmail should only deliever emails to local recipients and not the external emails like #gmail.com, #yahoo.com or anyother.
What configuration I should change in sendmail module config to achieve this.
Thanks in advance.
Sendmail: Catch all outgoing emails
You may define relay for outgoing email to redirect them to specified local mailbox.
sendmail.mc file modification [sendmail.mc must be recompiled into sendmail.cf]:
define(`SMART_HOST',`local:cactchall')
aliases file [aliases file must be recompiled using newaliases command]
cactchall: local_account_name
It is possible to configure sendmail to reject such message using error mailer instead of local mailer in smart host definition.
Related
Impossible to pass the token, because I have no possibility to paste any code.
The command gaction cli is made by the application.
When gactions is launched, it replies with an URL, to access to the account, and get the token.
But as this gactions is started by the code itself (inside node-red, an exec node), I haven't the possibility to paste the token returned by google.
So, is there any other method to register the action.json file to the app?
I already tried to paste the token to the same exec node of nodered, but unsuccessfully, because the PID changes each time a new command is passed.
I already tried to paste the token using a deamon node, also unsuccessfully (error)
Here is how my gaction file is called:
gactions test -preview_mins 9999999 -action_package action.json -project my-test-app-11111
Actually, the node-red node returns the URL which has to be pasted in a browser.
Then I must identify at my account in Google actions web site, and then, I get a token.
What I need know is the possibility to start gactions with the parameters and the token in the same command line, or to ask gactions (used on Linux) to register by itself with my identification logins.
On a client, when you log into gactions, it will create a creds.data file in that directory, which contains information about your login credentials to automatically authenticate later. If this file is not found, you will be asked to authenticate to get these credentials. If your system has the creds.data file located in the same directory, you should be able to run commands without the explicit need to login each time.
I have just installed Vault on my machine, I intend touse it single user.
When trying to use it for the first time, I get the error message below.
Is there anything I should enable?
I have the correct passwords.
I am using the Admin account.
I have Windows * 64 bits, Vault is also 64 bits.
Thanks to Beth's answer below, now I can at least visualise the following page, but still not be able to follow the links in it.
This is the result I get when I click on the links(Picture below).
Error messages are below, but the formatting is not good.
Most likely causes: The request matched a wildcard mime map.
The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.
Things you can try: If you want to serve this content as a static file, add an explicit MIME map.
Detailed Error Information: Module StaticFileModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070032
Requested URL http://vrindavana:80/VaultService/Admin/default.aspx Physical Path C:\inetpub\wwwroot\VaultService\Admin\default.aspx
Logon Method Anonymous
Logon User Anonymous
IIS:
I have IIS installed and if I browse it I see what's on the picture below.
First try reaching the Vault server using a browser. Try the URL http://<your Vault server name>/vaultservice/index.html. If you can not reach that page, then change to either the FQDN or the IP address.
If you still cannot reach the index.html page, then try reaching it using a browser right on the server and use localhost. The URL would then be http://localhost/vaultservice/index.html.
Let me know the results of these URLs first and then I'll give you next steps.
Beth
SourceGear Technical Support
Thanks for the update.
The error seems to indicate a problem with the .NET Framework. Here are the next steps you should try.
1) Register the .NET framework with IIS. Run a command-prompt as administrator and then change directories until you get to the highest version of the 4.x .NET framework. It might look something like cd C:\Windows\Microsoft.net\framework64\v4.0.30319, but I'm not sure of the entire path on your machine. Then run the command aspnet_regiis -i.
Then try your web page again.
2) If you then get a 404.2 error, then open your IIS Manager, click on the machine name and then click on ISAPI and CGI restrictions. Make sure the .NET frameworks are set to Allow there.
CruiseControl.net correctly detects that there are "No modifications detected" when I run the program with a visible terminal and shows green build reports but after I quit the program and start the service, the builds fail with the following stack trace:
ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: . Process command: C:\Program Files\TortoiseHg\hg.exe pull https://redacted.kilnhg.com/Code/Repositories/Group/HealthTracker
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute(ProcessInfo processInfo)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial.HgPull(IIntegrationResult result)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)
Project: HealthTracker
System Information:
Windows 7 x64
CCnet 1.8.5.0
Where do I start to debug the problem?
When Cruisecontrol runs as a service it runs with the service account's credentials. It is probably running as network service. You will either need to provide a password for Mercurial in the ccnet.config file or you will need to copy your authentication certificates from your user account folder to the network service's account folder. That folder is in different places in different versions of Windows.
Since I use a token provided by FogCreek (documented at http://help.fogcreek.com/8375/access-tokens-and-continuous-integration-servers), I have a kiln.prefix, kiln.username, and a kiln.password. The three values are stored inside mercurial.ini. Unfortunately, there is no corresponding file for the NETWORK SERVICE user account so the solution is to run the CruiseControl.NET service with a normal Windows user account's credentials and configure that account with the correct mercurial.ini settings.
I want to setup a local mail server which want to work in local environment. For that i used the sendmail and dovecot.
i have a development server and in that we uses mantis like tools. so after resolving the issue each developer got the mail previously but now it is not getting in local intranet.
so i need to resolve this problem for that i installed sendmail server.
yum install sendmail* -y
yum install m4* -y
changed in sendmail.mc
dnl # DAEMON_OPTIONS(`Port=smtp, Addr=192.168.1.91, Name=MTA')dnl
then
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
then service sendmail restart
for receiving mail i installed dovecot
yum install dovecot* -y
in that i changed
in dovecot.conf
uncomment pop3 imap
10-auth.conf
changed
disable_plaintext_auth = no
auth_mechanisms = plain login
in 10-mailconf
uncomment the mailDir.
in 10-master.conf
user and group left blank
everything is works all said ok.
sendmail ok. dovecot ok.
no error but mail dosen't receive.
but nothing happened i am not able to receive mail.
I need to do like if i have a email user1#example.com and user2#example.com so both are using mantis user1 is admin of mantis. if any issue get resolve then user2 will get the automatic mail for that from user1.
for that how i configure the mail server.
In sendmail.mc change
dnl # DAEMON_OPTIONS(`Port=smtp, Addr=192.168.1.91, Name=MTA')dnl
to
DAEMON_OPTIONS(`Port=smtp, Addr=192.168.0.0, Name=MTA')dnl
To accept mail on port 25 from local address 192.168.xxx.xxx
Also add a line in access file (to relay mail from those IP's):
Connect:192.168 RELAY
Don't forget to type make after editing.
I am trying to make a webpage which will have the entire inventory of servers that our team manages in the form of a table. I am using a simple LAMP stack and the inventory input as a CSV file.
The table has three columns: Hostname, IP address and device serial number.
While this works perfectly fine, I want to take this a step further and make every IP address in the table a hyperlink, clicking which will open an SSH client, which will connect to that IP address. Any cues to how this can be done? I was hoping there would be something like the the mailto: tag which opens an email client (Outlook window).
I've done it following the info of this blog post.
For future reference in case the original page becomes missing, here is the process:
you cannot directly map the ssh:// scheme to PuTTY, but you can map it to an intermediary script which will in turn launch PuTTY with the right arguments. Mine is called putty_ssh.bat and has the following content:
#echo off
set var=%1
set extract=%var:~6,-1%
start "C:\Program Files (x86)\PuTTY\putty.exe" %extract%
the script has to be registered in the registry. You can just create a ssh.reg file with the following content and open it (customizing last line as needed):
REGEDIT4
[HKEY_CLASSES_ROOT\ssh]
#="URL:ssh Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\ssh\shell]
[HKEY_CLASSES_ROOT\ssh\shell\open]
[HKEY_CLASSES_ROOT\ssh\shell\open\command]
#="\"C:\\path\\to\\putty_ssh.bat\" %1"
When I click on ssh:// links in web pages, it now opens PuTTY.
PuTTY unfortunately does not associate itself with the ssh:// or any other URLs.
You can associate an application with a protocol manually. But it's not trivial. For instructions, see below.
Easier way is to install WinSCP SFTP client. WinSCP 5.9 and newer registers itself to handle the ssh:// URL and opens the session specified by the URL in PuTTY.
So basically, if you just install WinSCP, it will make PuTTY handle the ssh:// URLs, without the below manual tweaks.
(I'm the author of WinSCP)
To register an application manually, see the MSDN article Registering an Application to a URI Scheme.
Basically you add a registry key like:
[HKEY_CLASSES_ROOT\ssh]
#="URL: SSH Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\ssh\DefaultIcon]
#="\"C:\\Program Files (x86)\\PuTTY\\PuTTY.exe\",0"
[HKEY_CLASSES_ROOT\ssh\shell]
[HKEY_CLASSES_ROOT\ssh\shell\open]
[HKEY_CLASSES_ROOT\ssh\shell\open\command]
#="\"C:\\Program Files (x86)\\PuTTY\\PuTTY.exe\""
Though the above passes a whole URL to the PuTTY command-line. And PuTTY does not understand the ssh:// prefix. So you would have to add a wrapper script that strips the ssh:// and passes only a user and a host to PuTTY.
For that see:
https://johnsofteng.wordpress.com/2009/05/12/launch-putty-from-browser/