aboutsummaryrefslogtreecommitdiff
path: root/utils/smtp/session.go
AgeCommit message (Collapse)AuthorFilesLines
2026-03-08feat(dns): add update functionality for DNS records (MX, SRV, TXT)Bobby1-0/+25
- Implemented UpdateMXRecord, UpdateSRVRecord, and UpdateTXTRecord functions in their respective repositories. - Added UpdateRecord method in dns service to handle updates for various DNS record types. - Updated router to include a new route for updating DNS records. - Enhanced error messages for record updates in messages.go. - Modified the frontend forms to support editing DNS records with improved UI components. - Refactored existing domain management code to remove unused update functionality. - Improved email handling by adding MX record validation during email delivery.
2026-03-08feat(dns): Implement DNS record management and query handlingBobby1-2/+106
- Added models for various DNS record types: A, AAAA, CNAME, MX, SRV, and TXT. - Created repository functions for CRUD operations on DNS records. - Developed DNS server functionality to handle incoming queries and forward them to upstream servers. - Implemented local resolution for DNS queries, including support for A, AAAA, CNAME, MX, TXT, and SRV records. - Enhanced SMTP server to support TLS and STARTTLS configurations. - Improved email session handling with local delivery and error logging. - Added new log messages for better traceability of DNS operations and SMTP actions.
2026-03-08Refactor configuration handling and add mail management featuresBobby1-18/+18
- Removed dependency on messages package in TOML loading and parsing. - Introduced new config constants and messages for better clarity and maintainability. - Implemented mail user and mailbox management with corresponding controllers and views. - Added new templates for mailboxes, mailbox creation, and user management. - Enhanced logging and error handling throughout the application. - Established a structured approach for applying default values in TOML configuration. - Created new utility functions for SMTP and email handling.
2026-03-07Refactor dashboard and mailboxes pages to integrate services for data retrievalBobby1-7/+8
- Updated `Dashboard` function to use `services.Overview()` for rendering overview data. - Enhanced `Mailboxes` function to include pagination, sorting, and search functionality using `services.ListMailboxes()`. - Modified `Users` function to implement pagination, sorting, and search with `services.ListUsers()`. Revamped templates for mailboxes and users - Updated `mailboxes.htmx.django` to display mailbox items dynamically with total count. - Enhanced `users.htmx.django` to show user details and total count, with improved layout for user information. Introduced new response types and constants - Added `PaginatedResponse` type in `types/response.go` for consistent pagination responses. - Introduced constants for pagination in `utils/meta/constants.go`. Implemented email processing and storage services - Created `services/email.go` for processing incoming emails and storing them in the database. - Added email parsing utilities in `utils/email` for handling email content and attachments. Established repository functions for mailboxes, users, and emails - Created repository functions in `repositories` for managing mailboxes, users, and emails, including listing and searching capabilities. Refactored SMTP server functions - Updated SMTP server handling in `utils/smtp` to streamline session management and message processing. - Removed obsolete storage functions and integrated email processing directly into the SMTP session. Added new message constants for better logging and error handling - Introduced message constants in `messages/email.go` and `messages/mailbox.go` for improved clarity in logs.
2026-03-07feat: implement SMTP server with authentication, port validation, and email ↵Bobby1-0/+61
storage