postfix – How to Trace Who was Using my Mail Relay on Spamming?

I have a Postfix mail relay server running as Exchange smarthost as well as hosting another mail locally.

Last week I observed an attack on this server, someone is using it to send massive emails to different destinations.

I can’t find out where it is connected from and the “from” address is also masked.

Below is the mail logs:

Apr 16 06:29:10 mail.xxx.com postfix/qmgr(25497): EC5A91D727: from=<>, size=3096, nrcpt=1 (queue active)
Apr 16 06:29:10 mail.xxx.com postfix/bounce(12183): B37D31D6FA: sender non-delivery notification: EC5A91D727
Apr 16 06:29:10 mail.xxx.com postfix/qmgr(25497): B37D31D6FA: removed
Apr 16 06:29:11 mail.xxx.com postfix/smtp(12164): 1A9B71D801: to=<xxx@inver**.com>, relay=inver**.com(164.138.x.x):25, delay=50, delays=39/0/6.7/5, dsn=2.0.0, status=sent (250 OK id=1lX6jh-000875-TC)
Apr 16 06:29:11 mail.xxx.com postfix/qmgr(25497): 1A9B71D801: removed
Apr 16 06:29:11 mail.xxx.com postfix/smtp(11990): 3BEAB1D9C3: to=<xxx@tms**.pl>, relay=tms**.pl(194.181.x.x):25, delay=49, delays=37/0/6.7/5.4, dsn=2.0.0, status=sent (250 OK id=1lX6ji-000469-QT)
Apr 16 06:29:11 mail.xxx.com postfix/qmgr(25497): 3BEAB1D9C3: removed
Apr 16 06:29:12 mail.xxx.com postfix/smtp(12954): 418621D80D: to=<xxx@medi**.com.cn>, relay=mxw**.com(198.x.x.x):25, delay=51, delays=38/0/8.5/4.5, dsn=5.0.0, status=bounced (host mxw.mxhichina.com(198.11.189.243) said: 551 virus infected mail rejected (in reply to end of DATA command))
Apr 16 06:29:12 mail.xxx.com postfix/cleanup(7936): 6711A1D7B7: message-id=<20210415182912.6711A1D7B7@mail.xxx.com>
Apr 16 06:29:12 mail.xxx.com postfix/bounce(12184): 418621D80D: sender non-delivery notification: 6711A1D7B7
Apr 16 06:29:12 mail.xxx.com postfix/qmgr(25497): 418621D80D: removed
Apr 16 06:29:12 mail.xxx.com postfix/qmgr(25497): 6711A1D7B7: from=<>, size=2554, nrcpt=1 (queue active)
Apr 16 06:29:12 mail.xxx.com postfix/smtp(11499): 65E4C1D95F: to=<xxx@an**.com>, relay=aspmx.l.google.com(172.217.x.x):25, delay=51, delays=38/0/6.3/6.7, dsn=5.7.0, status=bounced (host aspmx.l.google.com(172.217.194.27) said: 552-5.7.0 This message was blocked because its content presents a potential 552-5.7.0 security issue. Please visit 552-5.7.0  https://support.google.com/mail/?p=BlockedMessage to review our 552 5.7.0 message content and attachment content guidelines. z63si3810735ybh.300 - gsmtp (in reply to end of DATA command))
Apr 16 06:29:12 mail.xxx.com postfix/cleanup(10468): 705F91D801: message-id=<20210415182912.705F91D801@mail.xxx.com>
Apr 16 06:29:12 mail.xxx.com postfix/smtp(11996): F05911DBCA: to=<xxx@maq**.ae>, relay=maq**.protection.outlook.com(104.47.x.x):25, delay=36, delays=27/0/3.1/6, dsn=2.6.0, status=sent (250 2.6.0 <20210415112836.BE31E4C0C57EAA1B@alshirak.com> (InternalId=93338229282509, Hostname=DB8PR10MB2745.EURPRD10.PROD.OUTLOOK.COM) 933811 bytes in 3.322, 274.451 KB/sec Queued mail for delivery)
Apr 16 06:29:12 mail.xxx.com postfix/qmgr(25497): F05911DBCA: removed
Apr 16 06:29:12 mail.xxx.com postfix/bounce(12183): 65E4C1D95F: sender non-delivery notification: 705F91D801
Apr 16 06:29:12 mail.xxx.com postfix/qmgr(25497): 65E4C1D95F: removed

How to check where is the attack source? Is there a way to limit only a specific range of domains that can be used for mail relay?

I’m not a Postfix professional, so any suggestions/advises would be appreciated.

icloud – Mail box folder disappeared

Catalina 10.15.7, Mail 13.4 2015 iMac.

My IMAP iCloud Mail setup has lots of mailboxes. Out of the blue, I see at the bottom of the left side: “Downloading 8,547 of 10,633 messages”

I look around as this is going on and see that a major mailbox/folder is missing. (“COMPUTERS” !!)

I see there is a new master folder “!Mail” and at then bottom of it, a newly created mailbox/folder “COMPUTERS” with just one message in it.

Where has the original COMPUTERS mail folder gone???

Thanks for any ideas….

Charly

stored procedures – SQL Server Management Send Mail as Part of a Job

I have a SQL Job that I would like to send an email through, but for some reason I can’t get any details on why the email is not sending. This code works as expected when executed in the query window, and SQL Server Agent will also send error emails to me, so my email profile seems to be set up correctly. The code:

BEGIN
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'MailProfile',
@recipients = 'myaccount@emailcom',
@subject = 'Bad Data Report',
@query = N' USE Database;
   DECLARE @yesterday date = getdate() - 1;  select * from Timecards WHERE Date = @yesterday AND (DailyHours > 24.1 OR DailyHours < 0 ) ',
@exclude_query_output = 1,
@attach_query_result_as_file = 1,
@query_result_header = 1,
@query_attachment_filename = 'BadDataQuery.txt'
END

Following some advice from similar issues on this site, I tried looking through sysmail_allitems and sysmail_faileditems, but neither log any attempts to send. I also created a stored procedure that I had the job call as a roundabout way to send the email, but that also did not send an email nor leave an error. Any ideas what might be going on?

Attachment file is not showing in email inbox php mail

i am using php mail function to send the attachment file, i want to display attachment file in inbox of email account, but my variable $data where i fetch details related to attached file, is empty.please help me to showing attachment file in email inbox.
Below is my code.

$data = chunk_split(base64_encode(file_get_contents($data)));
i fetched data in $data variable.

send_mail.php


<?php

    if (isset($_POST('email'))) {
        $email = $_POST('email');
        $mobile = $_POST('mobile');
        
        $fname = '';
        if(isset($_POST('fname'))){
        $fname = $_POST('fname');
        }
        
        
        $lname = '';
        if(isset($_POST('lname'))){
        $lname = $_POST('lname');
        }
        
        $candidate_name = '';
        if(isset($_POST('candidate_name'))){
        $candidate_name = $_POST('candidate_name');
        }
        
        
        $questions = '';
        if(isset($_POST('questions'))){
        $questions = $_POST('questions');
        }
        
        $apply_for = '';
        if(isset($_POST('apply_for'))){
        $apply_for = $_POST('apply_for');
        }
        
        $experience = '';
        if(isset($_POST('experience'))){
        $experience = $_POST('experience');
        }
        
        $candidate_message = '';
        if(isset($_POST('candidate_message'))){
        $candidate_message = $_POST('candidate_message');
        } 
        
        $data = '';
        if(isset($_FILES)){
                $file_name = $_FILES('my_file')('name');
                $temp_name = $_FILES('my_file')('tmp_name');
                $file_type = $_FILES('my_file')('type');
                $path_parts = pathinfo($file_name);
                $ext = $path_parts('extension');
                
                    $semi_rand = md5(time());
                    $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
                    $file = fopen($_FILES('my_file')('tmp_name'), "rb");
                    $data = fread($file, filesize($_FILES('my_file')('tmp_name')));
                    fclose($file);
                    //$data = chunk_split(base64_encode($data));
                    $data = chunk_split(base64_encode(file_get_contents($data))); 
                    $name = $_FILES('my_file')('name');
                    
                      /*  $message .= "Content-Type: {"application/octet-stream"};n" . " name="$name"n" .
                            "Content-Disposition: attachment;n" . " filename="$name"n" .
                            "Content-Transfer-Encoding: base64nn" . $data . "nn";
                    $message .= "--{$mime_boundary}n"; */
            }
        
         $body = '<html>
                    <head>
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        <title>Cross Hudson Plastic Surgery</title>
                    </head>
                    <body>
                        <div style="background: #f1f1f1 none repeat scroll 0 0; display: inline-block; min-height: 100vh; width: 100%; font-size:14px;">
                            <div style="font-family: arial;  background: #f5f5f5 none repeat scroll 0 0; border-radius: 5px; box-sizing: border-box; display: table; margin: 30px auto;max-width: 800px;min-width: 400px;  width: 100%;">
                               <div style="background: #333 none repeat scroll 0 0;border-bottom: 1px solid #dfdfdf; margin-bottom: 30px; text-align: center;">
                                    <img style=" margin: 20px 0; max-width: 267px;" src="https://www.devoint.com/images/logo.png">
                                </div>
                                <div style="margin: 0 auto; padding: 10px 50px 22px; font-size: 15px;">
                                    <p style="color: #5f5f5f; line-height: 1.6;">Details has given below :-</p>
                                    <p style="color: #5f5f5f; line-height: 1.6;">
                                            <b>Email : </b>' . $email . '
                                       </p>
                                       <p style="color: #5f5f5f; line-height: 1.6;">
                                            <b>mobile Number: </b>' . $mobile . '
                                       </p> 
                                        ';
                                        
                                        if($fname != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b>First Name : </b>' . $fname . '
                                           </p>';
                                        }
                                        if($lname != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b>Last Name : </b>' . $lname . '
                                           </p>';
                                        }
                                        
                                        if($candidate_name != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b>Candidate Name : </b>' . $candidate_name . '
                                           </p>';
                                        }
                                        
                                         if($questions != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b>Questions : </b>' . $questions . '
                                           </p>';
                                        }
                                         if($apply_for != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b>Apply For : </b>' . $apply_for . '
                                           </p>';
                                        }
                                        if($experience != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b>Experience : </b>' . $experience . '
                                           </p>';
                                        }
                                        if($candidate_message != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b> candidate_message : </b>' . $candidate_message . '
                                           </p>';
                                        } 
                                        if($data != ''){
                                            $body .= '
                                            <p style="color: #5f5f5f; line-height: 1.6;">
                                                <b> filename : </b>' . $name . '<br>
                                                <b> Attachment : </b>' . $data . '
                                           </p>';
                                        }
                                         $body .='                                   
                                </div>
                                <div style="background: #333 none repeat scroll 0 0; padding: 9px 30px;text-align: center;">
                                    <p style="color: #fff; line-height: 1.5; font-size:13px;">
                                        Copyright &copy; ' . date("Y") . ' Devoint IT Solutions
                                    </p>
                                </div>
                            </div>
                        </div>
                    </body>
                </html>';
        $to = 'email@gmail.com';
        $from = 'Contact@gmail.com';
        if(isset($_POST('userName'))){
            $subject = "Have some questions?";
        }
        else{
            $subject = "Candidature form";
        }
        
        //$subject = "New Contact Form Submitted";
        // To send HTML mail, the Content-type header must be set
        $headers = 'MIME-Version: 1.0' . "rn";
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
        $headers .= "Content-Type: multipart/mixed; boundary="" . $semi_rand . """ . "rn";
        // Additional headers
        $headers .= 'To: ' . $to . "rn";
        $headers .= 'From: ' . $from . "rn";
        // Send the email
        $page = $_SERVER('HTTP_REFERER');
        if (mail($to, $subject, $body, $headers)) {
            echo '<div class="alert alert-success alert-dismissible"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a><strong>Success!</strong>Your details has been submitted successfully! We will contact you soon.</div>';
            die;
        } else {
            echo '<div class="alert alert-danger alert-dismissible"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a><strong>Alert!</strong> Something went wrong!</div>';
            die;
        }
    }
    ?>

[OzzModz] Russian language for [DBTech] DragonByte Mail

Admin submitted a new resource:

[OzzModz] Russian language for [DBTech] DragonByte Mail – Full russian translation

Full russian translation

Read more about this resource…

.

email client – Big Sur opens gmail instead of mail app

Since my upgrade to Big Sur, the mail links in my address book open Gmail (in a chrome browser).
Default mail account is set to an iCloud account and still gmail opens.

Are there any other prefs to disable this annoying behaviour?

Besides that, MS Excel (on mac) shows a PDF in chrome after clicking “Share as pdf…”, befiore the upgrade, it opened my default mail program (apple mail in the pre-big sur era)

New And 2014-2021 Created Gmail Sell (Forwarding Mail Also Availble) — 👉 GSA SEO and Marketing Forum 👈

New And 2014-2021 Created Gmail Sell (Forwarding Mail Also Availble)
Unlimited New And 2014-2021 Created Verified Old Gmail Sell (Forwarding Mail Also Availble)
new gmails with 7days replacement guarranty
Price:-               20 Gmail 8$
                       50 gmail 15$
                       100 Gmail 25$
Old Gmail Price Depend How Old gmail You need.I have Multiple Years Old gmail Like 2014/2016/2018/2019/2020 and new
                         I have Unlimited Old and New gmail in Stock
Contact Me:-   
                       Skype :-  saikat-nakib
            Facebook  :-  fb.com/me.nakib
                 FB Massenger:-  m.me/me.nakib
           Instagram  :- instagram.com/SaikatNakib/
             Telegram :- t.me/me_nakib
            Whatsapp  :-  +8801995177888
              twitter :-  twitter.com/SaikatNakib
        Mail/hangouts :-  saikatnakib@gmail.com

Here Is Some Clint Feedback Review

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123