postfix-mta

How to disable postfix address verification

时光总嘲笑我的痴心妄想 提交于 2020-08-09 07:09:12
问题 I'm doing some spam/botnet research and need to accept all email that my mail server receives. I've set postfix up, but I can't seem to figure out how to disable the sender address verification function. During my initial tests (spoofing mail source as test@test.com), I discovered postfix checks with the sender's mail server to verify the user exists (which it doesn't in my test case). As a result, the test message fails. Any ideas? 回答1: Got it... Paste this in /etc/postfix/main.cf smtpd

Bash end loop for postfix logs

旧时模样 提交于 2020-06-17 09:38:10
问题 bash script that search the postfix queue id and search different .gz files in selected data range files , but script keeps on searching all logs if i gave same date , wanted to search only selected date range files log files list in folder maillog-02052020.log.gz maillog-03052020.log.gz maillog-04052020.log.gz maillog-05052020.log.gz maillog-06052020.log.gz maillog-07052020.log.gz maillog-08052020.log.gz maillog-09052020.log.gz executing this script like this sh testscript.sh frommail@xyz

From email address changes after email is sent (GMail postfix relay) [closed]

感情迁移 提交于 2020-01-30 06:33:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I've reached the limits of my SMTP/postfix knowledge. I'm sending mail using javamail 1.4. The javamail library is connecting to a local postfix process. The postfix process is configured to relay mail through gmail. relayhost = smtp.gmail.com:587 Using the javamail lib, I'm setting the from address. But, when

PHP - EC2 Implementing SES - Help

六眼飞鱼酱① 提交于 2020-01-25 09:46:05
问题 Hey Guys. I have my servers setup via EC2. I had postfix setup but as usual the emails were going into the spam box. I signed up for Amazons SES, i see everyone saying its easy to implement although I cannot seem to figure it out. I downloaded the PHP SDK and put it in a inc folder. refrenced it in my script. and I cannot get any response what-so-ever from the script. Is there any demo scrips I can use? Thanks 回答1: "Wow," I thought to myself. "This is just the night for questions for which

Select duplicate and keep the oldest (not based on ID)

主宰稳场 提交于 2020-01-07 06:34:18
问题 Thanks for your help i'm stuck on this problem. Let me explain it, i have this kind of table : | domain | creationdate | value 1 | value 2 | |--------|---------------------|---------|---------| | abc | 2013-05-28 15:35:01 | value 1 | value 2 | | abc | 2013-04-30 12:10:10 | value 1 | value 2 | | aaa | 2011-04-02 13:10:10 | value 1 | value 2 | | bbb | 2012-02-12 10:48:10 | value 1 | value 2 | | bbb | 2013-04-15 07:15:23 | value 1 | value 2 | And i want to select (with subqueries) this : |

How to handle bounce email with postfix and php?

最后都变了- 提交于 2020-01-06 05:43:11
问题 Using Postfix and PHP i would like to handle bounce email. I first build a postfix server like this : https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot then master.cf configuration from https://thecodingmachine.io/triggering-a-php-script-when-your-postfix-server-receives-a-mail I'm able to send all outgoing email content to my php script, but how can i only send bounce email to this script ? Mail sender: $headers[] = 'MIME-Version: 1.0';

configure catch-all alias in postfix using mysql

旧街凉风 提交于 2020-01-05 02:03:27
问题 It seems like my catch-all alias doesn't work. When I use postmap -q test@example.org mysql:/etc/postfix/mysql-virtual-alias-maps.cf There is no output. But when I command postmap -q jack@example.org mysql:/etc/postfix/mysql-virtual-alias-maps.cf the output is john@example.org. How can I fix this? The configure query is: query= SELECT destination FROM virtual_aliases WHERE source='%s' Table virtual_aliases: id domain_id source destination 5 1 @example.org john@example.org 7 1 john@example.org

How to change the mailer Content-Transfer-Encoding settings in Rails?

折月煮酒 提交于 2020-01-02 02:48:07
问题 The 'Content-Transfer-Encoding' setting is set to '7bit' by default. The mail server Postfix is breaking down the email header by bunch of 1000 caracteres, meaning that if you have a long email (using HTML for example), you end up having spaces in the middle of your text or links. (See this thread for more info: http://tech.groups.yahoo.com/group/postfix-users/message/273296) Following the Rails ActionMailer documentation (http://api.rubyonrails.org/classes/ActionMailer/Base.html), adding the

postfix 2.9.6.1 forward all mail to an external mail address

可紊 提交于 2020-01-01 19:45:49
问题 I am trying to tell postfix that all mails to any address should be forwarded to an external email address. My main.cf includes the entry for smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert

Is it possible to send mails by bash script via smtp?

荒凉一梦 提交于 2020-01-01 04:30:08
问题 I have postfix+dovecot. I want to make bash script which can use SMTP for this. I don't want use sendmail. Is it possible? May be someone has some examples of code? 回答1: Boy, when that gauntlet is thrown, it always bash es me right upside the head! :-) #!/bin/sh function checkStatus { expect=250 if [ $# -eq 3 ] ; then expect="${3}" fi if [ $1 -ne $expect ] ; then echo "Error: ${2}" exit fi } MyHost=`hostname` read -p "Enter your mail host: " MailHost MailPort=25 read -p "From: " FromAddr read