I setup my Virtualmin using the manual installation because I'm on Ubuntu 3.14 and the automatic install does not support this version.
Because of this now I have problems. Everything works except Postfix.
Here is my postconf -n:
ubuntu#web01:~$ postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
mailbox_size_limit = 0
mydestination = web01.redacted.net, localhost, localhost.localdomain, localhost
myhostname = web01.redacted.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_inet_interfaces
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
The error I get in the mail.log is:
Mar 22 08:17:49 web01 postfix/smtpd[27725]: connect from nk11p04mm-asmtpout002.mac.com[17.158.236.237]
Mar 22 08:17:50 web01 postfix/smtpd[27725]: 3ADDE65113: client=nk11p04mm-asmtpout002.mac.com[17.158.236.237]
Mar 22 08:17:50 web01 postfix/cleanup[27729]: 3ADDE65113: message-id=<4FD40961-2187-4B2C-8892-8A7A3BADD07E#icloud.com>
Mar 22 08:17:50 web01 postfix/qmgr[1263]: 3ADDE65113: from=<redacted#icloud.com>, size=1941, nrcpt=1 (queue active)
Mar 22 08:17:50 web01 postfix/error[27730]: 3ADDE65113: to=<redactedName#redacted.co>, orig_to=<hostmaster#redacted.co>, relay=none, delay=0.23, delays=0.2/0.01/0/0.02, dsn=5.1.1, status=bounced (User unknown in virtual alias table)
Mar 22 08:17:50 web01 postfix/cleanup[27729]: 7083565115: message-id=<20140322081750.7083565115#web01.redacted.net>
And this is the /etc/postfix/virtual:
redacted.co redacted.co
hostmaster#redacted.co redactedName#redacted.co
Here is the /etc/aliases:
# See man 5 aliases for format
postmaster: root
The problem was that the initial user in our case redactedName was not found. To solve this problem the user was manually added as per:
redacted.co redacted.co
hostmaster#redacted.co redactedName#redacted.co
redactedName#redacted.co redactedName
This fixed the problem.
I hope someone else finds this useful. It took a lot of debugging and looking at logs to finally understand what the error message was telling me was in fact the error itself. Basically the redactedName#redacted.co was not being redirected to any user.
Related
I'm trying to connect to a postfix server from roundcube in another host (all in LAN).
I get always a "lost connection after CONNECT from myhost".
This is my full log:
tail -f /var/log/mail.log
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: initializing the server-side TLS engine
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: connect from ns1.domainexample.com[10.0.0.10]
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: smtp_stream_setup: maxtime=300 enable_deadline=0
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? 127.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? 127.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? [::ffff:127.0.0.0]/104
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? [::ffff:127.0.0.0]/104
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? [::1]/128
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? [::1]/128
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? 10.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? 10.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: > ns1.domainexample.com[10.0.0.10]: 220 domainexample.com ESMTP Postfix (Debian/GNU)
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: watchdog_pat: 0x55bacd1b1500
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: vstream_fflush_some: fd 19 flush 41
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: smtp_get: EOF
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? 127.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? 127.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? [::ffff:127.0.0.0]/104
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? [::ffff:127.0.0.0]/104
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? [::1]/128
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? [::1]/128
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostname: smtpd_client_event_limit_exceptions: ns1.domainexample.com ~? 10.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? 10.0.0.0/8
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: lost connection after CONNECT from ns1.domainexample.com[10.0.0.10]
Jan 28 11:49:46 domainexample postfix/smtpd[4796]: disconnect from ns1.domainexample.com[10.0.0.10] commands=0/0
Always after match with "match_hostaddr: smtpd_client_event_limit_exceptions: 10.0.0.10 ~? 10.0.0.0/8"
This is my config:
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
debug_peer_level = 3
debug_peer_list = 10.0.0.10
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = mail.domainexample.com, domainexample.com, mail.domainexample.com, localhost.domainexample.com, localhost
myhostname = domainexample.com
mynetworks = 127.0.0.0/8 10.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = 10.0.0.0/8
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_loglevel = 3
smtpd_tls_security_level = may
virtual_alias_maps = hash:/etc/postfix/virtual
If I connect since the roundcube host, I can do it without problems (by CLI):
openssl s_client -starttls smtp -crlf -connect mail.domainexample.com 25
Trying 10.20.30.10...
Connected to mail.domainexample.com.
Escape character is '^]'.
220 domainexample.com ESMTP Postfix (Debian/GNU)
EHLO domainexample.com
250-domainexample.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
MAIL FROM: admin#domainexample.com
250 2.1.0 Ok
RCPT TO: admin#domainexample.com
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Hellooooo!!!!
.
250 2.0.0 Ok: queued as 0AE20FF6B0
QUIT
221 2.0.0 Bye
Connection closed by foreign host.
But when I connect sind the roundcube page, occur the "lost connection after CONNECT from myhost".
I'm really stuck at this point...
What I'm wrong?
Thanks for help
P.S.: I've tried deleting this message and creating it on serverfault (because I think it's better than here), but couldn't (serverfault says it might be spam, though I deleted this message here).
Try to send a complete mail message, so not just Hellooooo!!!, I think because of the missing from and to, your message is not send.
From: "Admin" <admin#domainexample.com>
To: "Admin" <admin#domainexample.com>
Subject: test message sent from manual telnet session
With the headers set, we now add one blank line with a carriage return/line feed (just press enter twice) and then we start the actual body of the message.
Hello World
.
note the . at the end, Postfix should respond with:
250 2.6.0 message received
I started receiving spoofing emails. So I set up my server and domain but I still receive emails. SPF is not rejecting emails.
Can anyone help?
dns records
myserver.com. IN TXT "v=spf1 a mx a:myserver.com ip4:50.111.111.111 -all"
_dmarc.myserver.com. IN TXT "v=DMARC1; p=reject; fo=1; ri=3600; pct=100; rua=mailto:info#myserver.com; ruf=mailto:info#myserver.com
/etc/postfix-policyd-spf-python/policyd-spf.conf
debugLevel = 1
HELO_reject = Fail
Mail_From_reject = Fail
PermError_reject = False
TempError_Defer = False
skip_addresses = 127.0.0.0/8,::ffff:127.0.0.0/104,::1
postfix - main.cnf
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination unix check_policy_service: private / policyd-SPF reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, bl.spamcop.net reject_rbl_client, check_policy_service inet: 127.0.0.1: 10023
postfix - master.cf
policyd-spf unix - n n - 0 spawn
user = policyd-spf argv = /usr/bin/policyd-spf
mail.log
Oct 12 21:13:36 myserver policyd-spf [26371]: None; identity = helo; client-ip = 72,167,234,237; helo = p3nlsmtp12.shr.prod.phx3.secureserver.net; envelope-from=test#baddkim.com; receiver=mymail#myserver.com
Oct 12 21:13:36 myserver policyd-spf [26371]: None; identity = mailfrom; client-ip = 72,167,234,237; helo = p3nlsmtp12.shr.prod.phx3.secureserver.net; envelope-from=test#baddkim.com; receiver=mymail#myserver.com
Oct 12 21:13:36 myserver policyd-spf [26369]: Pass; identity = mailfrom; client-ip = 72,167,234,237; helo = p3nlsmtp12.shr.prod.phx3.secureserver.net; envelope-from=test#emailspooftest.com; receiver=mymail#myserver.com
Oct 12 21:13:36 myserver postfix / smtpd [22955]: BFA1981347: client = p3nlsmtp12.shr.prod.phx3.secureserver.net [72.167.234.237]
Oct 12 21:13:36 myserver postgrey [2322]: action = pass, reason = triplet found, client_name = p3nlsmtp12.shr.prod.phx3.secureserver.net, client_address = 72.167.234.237, sender=test#baddkim.com, recipient=mymail#myserver.com
Oct 12 21:13:36 myserver postfix / smtpd [26363]: C1ADE814FA: client = p3nlsmtp12.shr.prod.phx3.secureserver.net [72.167.234.237]
Oct 12 21:13:36 myserver postgrey [2322]: action = pass, reason = triplet found, client_name = p3nlsmtp12.shr.prod.phx3.secureserver.net, client_address = 72.167.234.237, sender=test#emailspooftest.com, recipient=mymail#myserver.com
I have Oracle 11g installed locally on each of my virtualbox machines (working under Windows 7 64bit). Suddenty, after a simple reboot, the database on one of the 5 virtual machines doesn't want to connect anymore.
With SID connection I obtain ORA-12505 error, and with service name : "Network adapter could not establish the connection", in SqlDeveloper with both cases. If I try a connection with SqlPlus as sysdba, I obtain the connection but with "connected to an idle instance". Hence if I try to see, for example, the list of sessions and processes working, I have the error 01034 ("ORACLE not available"). I tried a lot of tricks but nothing works. Could it be a specific problem with virtual machines ?
Here what I tried :
the services (of my base and of the listener) are working (and I wait enough between relaunch and connection retry) ;
the files tnsnames.ora, listener.ora and sqlnet.ora seem correct (see below) ;
If I force localhost to be 127.0.0.1 in hosts file, I have the 12514 error ;
ORACLE_HOME and ORACLE_SID are correctly set ;
It can't a priori be a memory problem (I even try to allow more memory to the specific VM which doesn't work) ;
If I force "startup" on sysdba session, the next requests obtain : ORA-03114 : not connected to ORACLE ;
It's not a priori a problem of system files size. In all cases, the not working database is not my biggest database among all my databases (and any file in oradata are bigger than in others VMs which have exactly the same configurations).
# tnsnames.ora Network Configuration File: C:\oracle_32\product\11.2.0\dbhome_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
# listener.ora Network Configuration File: C:\oracle_32\product\11.2.0\dbhome_2\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oracle_32\product\11.2.0\dbhome_2)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\oracle_32\product\11.2.0\dbhome_2\bin\oraclr11.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
ADR_BASE_LISTENER = C:\oracle_32
Thank you to read !
Here the alert log for the first connection of this morning :
Fri Jun 23 11:08:13 2017
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =167
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
Using parameter settings in server-side spfile C:\ORACLE_32\PRODUCT\11.2.0\DBHOME_2\DATABASE\SPFILEORCL.ORA
System parameters with non-default values:
processes = 1000
sessions = 1524
memory_target = 1232M
control_files = "C:\ORACLE_32\ORADATA\ORCL\CONTROL01.CTL"
control_files = "C:\ORACLE_32\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL"
db_block_size = 8192
compatible = "11.2.0.0.0"
db_recovery_file_dest = "C:\oracle_32\flash_recovery_area"
db_recovery_file_dest_size= 3852M
undo_tablespace = "UNDOTBS1"
remote_login_passwordfile= "EXCLUSIVE"
db_domain = ""
dispatchers = "(PROTOCOL=TCP) (SERVICE=orclXDB)"
local_listener = "LISTENER_ORCL"
audit_file_dest = "C:\ORACLE_32\ADMIN\ORCL\ADUMP"
audit_trail = "DB"
db_name = "orcl"
open_cursors = 300
diagnostic_dest = "C:\ORACLE_32"
Fri Jun 23 11:08:20 2017
PMON started with pid=2, OS id=2160
Fri Jun 23 11:08:20 2017
VKTM started with pid=3, OS id=2164 at elevated priority
VKTM running at (10)millisec precision with DBRM quantum (100)ms
Fri Jun 23 11:08:21 2017
GEN0 started with pid=4, OS id=2168
Fri Jun 23 11:08:21 2017
DIAG started with pid=5, OS id=2172
Fri Jun 23 11:08:21 2017
DBRM started with pid=6, OS id=2176
OER 7451 in Load Indicator : Error Code = OSD-04500: option indiquée interdite !
Fri Jun 23 11:08:21 2017
PSP0 started with pid=7, OS id=2180
Fri Jun 23 11:08:21 2017
DIA0 started with pid=8, OS id=2184
Fri Jun 23 11:08:21 2017
MMAN started with pid=9, OS id=2188
Fri Jun 23 11:08:21 2017
DBW0 started with pid=10, OS id=2192
Fri Jun 23 11:08:21 2017
LGWR started with pid=11, OS id=2196
Fri Jun 23 11:08:21 2017
CKPT started with pid=12, OS id=2200
Fri Jun 23 11:08:21 2017
SMON started with pid=13, OS id=2204
Fri Jun 23 11:08:21 2017
RECO started with pid=14, OS id=2208
Fri Jun 23 11:08:21 2017
MMON started with pid=15, OS id=2212
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Fri Jun 23 11:08:21 2017
MMNL started with pid=16, OS id=2216
starting up 1 shared server(s) ...
ORACLE_BASE from environment = C:\oracle_32
Fri Jun 23 11:08:22 2017
alter database mount exclusive
Successful mount of redo thread 1, with mount id 1475182246
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: alter database mount exclusive
alter database open
Fri Jun 23 11:08:31 2017
Errors in file c:\oracle_32\diag\rdbms\orcl\orcl\trace\orcl_lgwr_2196.trc:
ORA-00338: log 3 of thread 1 is more recent than control file
ORA-00312: online log 3 thread 1: 'C:\ORACLE_32\ORADATA\ORCL\REDO03.LOG'
Errors in file c:\oracle_32\diag\rdbms\orcl\orcl\trace\orcl_lgwr_2196.trc:
ORA-00338: log 3 of thread 1 is more recent than control file
ORA-00312: online log 3 thread 1: 'C:\ORACLE_32\ORADATA\ORCL\REDO03.LOG'
Errors in file c:\oracle_32\diag\rdbms\orcl\orcl\trace\orcl_ora_2232.trc:
ORA-00338: fichier journal 1 du thread plus recent que le fichier de controle
ORA-00312: journal en ligne 3 thread 1 : 'C:\ORACLE_32\ORADATA\ORCL\REDO03.LOG'
USER (ospid: 2232): terminating the instance due to error 338
Fri Jun 23 11:08:34 2017
Instance terminated by USER, pid = 2232`
Did you check the alert log of the database? that could be a good place to start looking.
Also when logged as sysdba, did you try to start the database: startup ?
If yes, what is the error message if any?
i am running 4 carbon cache instance behind 1 carbon relay instance. Below is my carbon.conf.
[cache:1]
LINE_RECEIVER_PORT = 2103
PICKLE_RECEIVER_PORT = 2104
CACHE_QUERY_PORT = 7102
STORAGE_DIR = /graphite_data/01
LOCAL_DATA_DIR = /graphite_data/01
[cache:2]
LINE_RECEIVER_PORT = 2203
PICKLE_RECEIVER_PORT = 2204
CACHE_QUERY_PORT = 7202
STORAGE_DIR = /graphite_data/02
LOCAL_DATA_DIR = /graphite_data/02
[cache:3]
LINE_RECEIVER_PORT = 2303
PICKLE_RECEIVER_PORT = 2304
CACHE_QUERY_PORT = 7302
STORAGE_DIR = /graphite_data/03
LOCAL_DATA_DIR = /graphite_data/03
[cache:4]
LINE_RECEIVER_PORT = 2403
PICKLE_RECEIVER_PORT = 2404
CACHE_QUERY_PORT = 7402
STORAGE_DIR = /graphite_data/04
LOCAL_DATA_DIR = /graphite_data/04
I have configured my carbon relay with below configutaion
LINE_RECEIVER_INTERFACE = 0.0.0.0
LINE_RECEIVER_PORT = 2003
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
PICKLE_RECEIVER_PORT = 2004
RELAY_METHOD = consistent-hashing
.
REPLICATION_FACTOR = 1
DESTINATIONS=127.0.0.1:2104:1,127.0.0.1:2204:2,127.0.0.1:2304:3,127.0.0.1:2404:4
I have configured my graphite webapp with the below configuration to get the data from all carbon cache process
STANDARD_DIRS = ['/graphite_data/01',
'/graphite_data/02',
'/graphite_data/03',
'/graphite_data/04']
# You *should* use 127.0.0.1 here in most cases
CARBONLINK_HOSTS = ["127.0.0.1:7102:1", "127.0.0.1:7202:2", "127.0.0.1:7302:3","127.0.0.1:7402:4"]
After configuration , i started pushing data with example-client.py to my carbon relay process. I could see that relay is pushing data to carbon-cache process.
**[root#poc-graphite graphite]# ls /graphite_data/02/system/loadavg_5min.wsp
/graphite_data/02/system/loadavg_5min.wsp
[root#poc-graphite graphite]# ls /graphite_data/03/system/loadavg_1min.wsp
/graphite_data/03/system/loadavg_1min.wsp
[root#poc-graphite graphite]# ls /graphite_data/04/system/loadavg_15min.wsp
/graphite_data/04/system/loadavg_15min.wsp**
But I am not able to see this metrics in my webapp. is there something wrong with configuration.
You should check the path of the twisted plugin with blow commands:
$python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
If in the results exist the path "/usr/local/lib/python2.7/dist-packages", just remove it:
sudo rm -rf /usr/local/lib/python2.7/dist-packages/twiste*
and then
sudo service carbon-cache stop ## wait a few seconds here
sudo service carbon-cache start
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
My postfix only let me send only 3600 email in an hour ( from which i conclude that there is 1s delay between each email ) while I want to send double that number .. I looked in the postfix configuration .Is there any parameters that i can change to send more than 3600 email in an hour ?
this is the output of postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 1d
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 5
default_destination_rate_delay = 0s
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
initial_destination_concurrency = 2
lmtp_destination_rate_delay = 0s
local_destination_rate_delay = 0s
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 1d
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.com
myhostname = server01.example.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
qmgr_message_recipient_limit = 10000
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES
relay_destination_rate_delay = 0s
sample_directory = /usr/share/doc/postfix-2.5.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_bind_address = xxx.xxx.xxx.xxx
smtp_destination_rate_delay = 0s
smtp_generic_maps = hash:/etc/postfix/generic
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_destination_rate_delay = 0s
see this,
you can play around with
default_recipient_limit
qmgr_message_recipient_limit
default_destination_rate_delay
The default amount of delay that is inserted between individual deliveries to the same destination; with per-destination recipient limit > 1, a destination is a domain, otherwise it is a recipient.
To enable the delay, specify a non-zero time value (an integral value plus an optional one-letter suffix that specifies the time unit).
Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks). The default time unit is s (seconds).
NOTE: the delay is enforced by the queue manager. The delay timer state does not survive "postfix reload" or "postfix stop".
Use transport_destination_rate_delay to specify a transport-specific override, where transport is the master.cf name of the message delivery transport.
This feature is available in Postfix 2.5 and later.
http://www.postfix.org/postconf.5.html